class Origami::NameLeaf

Class representing a leaf in a Name tree.

Public Class Methods

new(hash = {}) click to toggle source

Creates a new leaf in a Name tree.

hash

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

Calls superclass method Origami::Array.new
# File lib/origami/catalog.rb, line 359
def initialize(hash = {})
  
  names = []
  hash.each_pair do |k,v|
    names << k.to_o << v.to_o
  end
  
  super(names)
end