Class: GherkinRuby::AST::Step

Inherits:
Node
  • Object
show all
Defined in:
lib/gherkin_ruby/ast.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#filename, #line

Instance Method Summary collapse

Methods inherited from Node

#accept, #pos

Constructor Details

#initialize(name, keyword) ⇒ Step

Returns a new instance of Step.



76
77
78
79
# File 'lib/gherkin_ruby/ast.rb', line 76

def initialize(name, keyword)
  @name    = name.to_s
  @keyword = keyword.to_s
end

Instance Attribute Details

#keywordObject (readonly)

Returns the value of attribute keyword.



75
76
77
# File 'lib/gherkin_ruby/ast.rb', line 75

def keyword
  @keyword
end

#nameObject (readonly)

Returns the value of attribute name.



75
76
77
# File 'lib/gherkin_ruby/ast.rb', line 75

def name
  @name
end