Class: Gamefic::Proxy::Config

Inherits:
Base
  • Object
show all
Defined in:
lib/gamefic/proxy/config.rb

Instance Attribute Summary

Attributes inherited from Base

#args

Instance Method Summary collapse

Methods inherited from Base

#fetch, #initialize, #raise?

Constructor Details

This class inherits a constructor from Gamefic::Proxy::Base

Instance Method Details

#[](key) ⇒ Object



10
11
12
13
# File 'lib/gamefic/proxy/config.rb', line 10

def [](key)
  args.push key
  self
end

#select(narrative) ⇒ Object



6
7
8
# File 'lib/gamefic/proxy/config.rb', line 6

def select narrative
  args.inject(narrative.config) { |hash, key| hash[key] }
end