Class: XRay::Node
- Inherits:
-
Object
- Object
- XRay::Node
- Defined in:
- lib/node.rb
Instance Attribute Summary collapse
-
#position ⇒ Object
Returns the value of attribute position.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
- #=~(other) ⇒ Object
-
#initialize(text = '', position = nil) ⇒ Node
constructor
A new instance of Node.
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#position ⇒ Object
Returns the value of attribute position.
7 8 9 |
# File 'lib/node.rb', line 7 def position @position end |
#text ⇒ Object
Returns the value of attribute text.
7 8 9 |
# File 'lib/node.rb', line 7 def text @text end |
Instance Method Details
#=~(other) ⇒ Object
18 19 20 |
# File 'lib/node.rb', line 18 def =~(other) text =~ other end |
#to_s ⇒ Object
22 23 24 |
# File 'lib/node.rb', line 22 def to_s text end |