lib/yard/code_objects/cucumber/step.rb in yard-cucumber-3.1.0 vs lib/yard/code_objects/cucumber/step.rb in yard-cucumber-4.0.0
- old
+ new
@@ -1,15 +1,20 @@
-
-
module YARD::CodeObjects::Cucumber
-
class Step < Base
- attr_accessor :comments, :definition, :examples, :keyword, :scenario, :table, :text, :transforms, :value
+ attr_accessor :comments,
+ :definition,
+ :examples,
+ :keyword,
+ :scenario,
+ :table,
+ :text,
+ :transforms,
+ :value
- def initialize(namespace,name)
- super(namespace,name.to_s.strip)
+ def initialize(namespace, name)
+ super(namespace, name.to_s.strip)
@comments = @definition = @description = @keyword = @table = @text = @value = nil
@examples = {}
@transforms = []
end
@@ -30,9 +35,7 @@
end
def transformed?
!@transforms.empty?
end
-
end
-
end