Class: XDry::NMarker
Direct Known Subclasses
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(text) ⇒ NMarker
constructor
A new instance of NMarker.
- #to_s ⇒ Object
Methods inherited from Node
#method_missing, #tagged_with?, #tags, #tags=, #tags_comment
Constructor Details
#initialize(text) ⇒ NMarker
Returns a new instance of NMarker.
245 246 247 |
# File 'lib/xdry/parsing/nodes.rb', line 245 def initialize text @text = text end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class XDry::Node
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
243 244 245 |
# File 'lib/xdry/parsing/nodes.rb', line 243 def text @text end |
Instance Method Details
#to_s ⇒ Object
249 250 251 |
# File 'lib/xdry/parsing/nodes.rb', line 249 def to_s "#{self.class.name}('#{text}')" end |