Class: XDry::NDefine

Inherits:
Node
  • Object
show all
Defined in:
lib/xdry/parsing/nodes.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#indent, #pos

Instance Method Summary collapse

Methods inherited from Node

#method_missing, #tagged_with?, #tags, #tags=, #tags_comment

Constructor Details

#initialize(word) ⇒ NDefine

Returns a new instance of NDefine.



227
228
229
# File 'lib/xdry/parsing/nodes.rb', line 227

def initialize word
  @word = word
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class XDry::Node

Instance Attribute Details

#wordObject (readonly)

Returns the value of attribute word.



225
226
227
# File 'lib/xdry/parsing/nodes.rb', line 225

def word
  @word
end