Class: LucidTDL::AST::Step

Inherits:
Node
  • Object
show all
Defined in:
lib/lucid-tdl/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.



87
88
89
90
# File 'lib/lucid-tdl/ast.rb', line 87

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

Instance Attribute Details

#keywordObject (readonly)

Returns the value of attribute keyword.



85
86
87
# File 'lib/lucid-tdl/ast.rb', line 85

def keyword
  @keyword
end

#nameObject (readonly)

Returns the value of attribute name.



84
85
86
# File 'lib/lucid-tdl/ast.rb', line 84

def name
  @name
end