Class: Bogy::HashHandler
- Defined in:
- lib/bogy/handlers/hash_handler.rb
Instance Method Summary collapse
-
#initialize(hash) ⇒ HashHandler
constructor
A new instance of HashHandler.
- #load ⇒ Object
Methods inherited from Handler
Constructor Details
#initialize(hash) ⇒ HashHandler
Returns a new instance of HashHandler.
4 5 6 7 8 |
# File 'lib/bogy/handlers/hash_handler.rb', line 4 def initialize(hash) raise ArgumentError, "value should be of Hash type, not #{hash.class}" unless hash.is_a? Hash @hash = hash end |
Instance Method Details
#load ⇒ Object
10 11 12 |
# File 'lib/bogy/handlers/hash_handler.rb', line 10 def load @hash end |