Class: WithEase::ClosedStruct

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
HashApi
Defined in:
lib/with_ease/closed_struct.rb,
lib/with_ease/closed_struct/hash_api.rb

Defined Under Namespace

Modules: HashApi

Instance Method Summary collapse

Methods included from Forwardable

forward

Methods included from HashApi

#merge, #update

Instance Method Details

#==(other) ⇒ Object

@data.fetch(key, *defauts, &blk) end



23
24
25
# File 'lib/with_ease/closed_struct.rb', line 23

def ==(other)
  other.is_a?(self.class) && to_h == other.to_h
end