Class Origami::NameLeaf
In: sources/parser/catalog.rb
Parent: Origami::Array

Class representing a leaf in a Name tree.

Methods

new  

Public Class methods

Creates a new leaf in a Name tree.

hash:A hash of couples, associating a Name with an Reference.

[Source]

     # File sources/parser/catalog.rb, line 255
255:     def initialize(hash = {})
256:       
257:       names = []
258:       hash.each_pair { |k,v|
259:         names << k.to_o << v.to_o
260:       }
261:       
262:       super(names)
263:     end

[Validate]