class Metamorpher::Terms::Term
Attributes
parent[RW]
Public Instance Methods
alternatives()
click to toggle source
# File lib/metamorpher/terms/term.rb, line 23 def alternatives [self] end
inspect()
click to toggle source
# File lib/metamorpher/terms/term.rb, line 19 def inspect name end
path()
click to toggle source
# File lib/metamorpher/terms/term.rb, line 27 def path if parent parent.path << parent.children.index { |c| c.equal?(self) } else [] end end
with_younger_siblings()
click to toggle source
# File lib/metamorpher/terms/term.rb, line 35 def with_younger_siblings if parent parent.children_younger_than_or_equal_to(self) else [self] end end