Class: NeoHash

Inherits:
Object
  • Object
show all
Includes:
Support
Defined in:
lib/neo_hash/neo_hash.rb,
lib/neo_hash/support.rb,
lib/neo_hash/version.rb

Overview

Hash with attribute accessor

Defined Under Namespace

Modules: Support

Constant Summary collapse

VERSION =
'0.3.0'

Instance Method Summary collapse

Methods included from Support

#[], #[]=, #delete, #fetch, #include?, #method_missing, #to_h, #to_hash

Constructor Details

#initialize(h = {}) ⇒ NeoHash

Constructor

Parameters:

  • h (Hash) (defaults to: {})

    ({}) initial hash



5
6
7
# File 'lib/neo_hash/neo_hash.rb', line 5

def initialize(h = {})
  set_inner_hash(h)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class NeoHash::Support