Class: PageTemplate::Namespace
- Inherits:
-
Object
- Object
- PageTemplate::Namespace
- Includes:
- NamespaceItem
- Defined in:
- lib/PageTemplate/parser.rb
Instance Attribute Summary
Attributes included from NamespaceItem
Class Method Summary collapse
-
.construct_from(arg) ⇒ Object
Create a new top-level Namespace with a Hash-like object.
Instance Method Summary collapse
-
#initialize(parent = nil, object = nil) ⇒ Namespace
constructor
A new instance of Namespace.
Methods included from NamespaceItem
#clear, #delete, #get, #parser, #set, #true?
Constructor Details
#initialize(parent = nil, object = nil) ⇒ Namespace
Returns a new instance of Namespace.
169 170 171 172 173 |
# File 'lib/PageTemplate/parser.rb', line 169 def initialize(parent=nil,object=nil) @values = Hash.new @parent = parent @object = object end |