Class: SML::Treepath
- Inherits:
-
Object
- Object
- SML::Treepath
- Defined in:
- lib/ruby-sml/sml-treepath.rb
Instance Attribute Summary collapse
-
#path_entry ⇒ Object
Returns the value of attribute path_entry.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path_entry) ⇒ Treepath
constructor
A new instance of Treepath.
- #to_a ⇒ Object
Constructor Details
#initialize(path_entry) ⇒ Treepath
Returns a new instance of Treepath.
8 9 10 |
# File 'lib/ruby-sml/sml-treepath.rb', line 8 def initialize(path_entry) @path_entry = path_entry end |
Instance Attribute Details
#path_entry ⇒ Object
Returns the value of attribute path_entry.
6 7 8 |
# File 'lib/ruby-sml/sml-treepath.rb', line 6 def path_entry @path_entry end |
Class Method Details
Instance Method Details
#to_a ⇒ Object
18 19 20 |
# File 'lib/ruby-sml/sml-treepath.rb', line 18 def to_a return [] << path_entry end |