Class: TarvitHelpers::HashPresenter::Observable

Inherits:
Simple
  • Object
show all
Defined in:
lib/tarvit-helpers/modules/hash_presenter/observable.rb

Instance Attribute Summary

Attributes inherited from Simple

#_levels, #_parent

Instance Method Summary collapse

Methods inherited from Simple

#_root?, #method_missing

Constructor Details

#initialize(hash, levels = [], parent = nil) ⇒ Observable

Returns a new instance of Observable.



4
5
6
7
# File 'lib/tarvit-helpers/modules/hash_presenter/observable.rb', line 4

def initialize(hash, levels=[], parent=nil)
  super
  @_hash = hash
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class TarvitHelpers::HashPresenter::Simple

Instance Method Details

#_hashObject



9
10
11
# File 'lib/tarvit-helpers/modules/hash_presenter/observable.rb', line 9

def _hash
  _prepare_keys(@_hash)
end