Class: XDry::NLine

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(line) ⇒ NLine

Returns a new instance of NLine.



236
237
238
# File 'lib/xdry/parsing/nodes.rb', line 236

def initialize line
  @line = line
end

Dynamic Method Handling

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

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line.



234
235
236
# File 'lib/xdry/parsing/nodes.rb', line 234

def line
  @line
end