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
# File lib/origami/catalog.rb, line 320
def initialize(hash = {})
    super(hash.flat_map {|name, obj| [name.dup, obj]})
end