class SML::Treepath
Attributes
path_entry[RW]
Public Class Methods
construct(array_rep)
click to toggle source
# File lib/ruby-sml/sml-treepath.rb, line 12 def self.construct(array_rep) return nil if array_rep.nil? path_entry = array_rep.shift return SML::Treepath.new(path_entry) end
new(path_entry)
click to toggle source
# File lib/ruby-sml/sml-treepath.rb, line 8 def initialize(path_entry) @path_entry = path_entry end
Public Instance Methods
to_a()
click to toggle source
# File lib/ruby-sml/sml-treepath.rb, line 18 def to_a return [] << path_entry end