Class: Flor::Node::PseudoVarContainer

Inherits:
Hash
  • Object
show all
Defined in:
lib/flor/core/node.rb

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ PseudoVarContainer

inherit from Hash so that Dense is quietly mislead



366
# File 'lib/flor/core/node.rb', line 366

def initialize(type); @type = type; end

Instance Method Details

#[](key) ⇒ Object

def has_key?(key); true; end



368
# File 'lib/flor/core/node.rb', line 368

def [](key); [ "_#{@type}", { @type => key }, -1 ]; end