Module: RubyScreen::Configuration::Parser::NestingHash

Defined in:
lib/ruby_screen/configuration/parser/nesting_hash.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(object) ⇒ Object



3
4
5
6
# File 'lib/ruby_screen/configuration/parser/nesting_hash.rb', line 3

def self.extended(object)
  object.instance_variable_set(:@nesting_lookup, {})
  object.send(:build_nesting_lookup, object)
end

Instance Method Details

#find_nested_key(string) ⇒ Object



8
9
10
# File 'lib/ruby_screen/configuration/parser/nesting_hash.rb', line 8

def find_nested_key(string)
  @nesting_lookup[string]
end