Class: Morse::Tree::Node
- Inherits:
-
Object
- Object
- Morse::Tree::Node
- Defined in:
- lib/morse/tree.rb
Instance Attribute Summary collapse
-
#dash ⇒ Object
Returns the value of attribute dash.
-
#dot ⇒ Object
Returns the value of attribute dot.
-
#root ⇒ Object
Returns the value of attribute root.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #break ⇒ Object
-
#initialize(root = nil, value = '') ⇒ Node
constructor
A new instance of Node.
Constructor Details
Instance Attribute Details
#dash ⇒ Object
Returns the value of attribute dash.
60 61 62 |
# File 'lib/morse/tree.rb', line 60 def dash @dash end |
#dot ⇒ Object
Returns the value of attribute dot.
60 61 62 |
# File 'lib/morse/tree.rb', line 60 def dot @dot end |
#root ⇒ Object
Returns the value of attribute root.
60 61 62 |
# File 'lib/morse/tree.rb', line 60 def root @root end |
#value ⇒ Object
Returns the value of attribute value.
60 61 62 |
# File 'lib/morse/tree.rb', line 60 def value @value end |
Instance Method Details
#break ⇒ Object
67 68 69 |
# File 'lib/morse/tree.rb', line 67 def break @root || self end |