class Rydux::State

Public Class Methods

new(state) click to toggle source
Calls superclass method
# File lib/rydux/state.rb, line 5
def initialize(state)
  super(state)
  @structure = state.clone
end

Public Instance Methods

inspect() click to toggle source
# File lib/rydux/state.rb, line 14
def inspect
  @structure.inspect
end
method_missing(method) click to toggle source
# File lib/rydux/state.rb, line 18
def method_missing(method)
  if self[method].is_a? Hash
    self[method] = self.class.new(self[method])
  else
    self[method]
  end
end
to_s() click to toggle source
# File lib/rydux/state.rb, line 10
def to_s
  @structure.inspect
end