Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/tigon/hash_extensions.rb

Instance Method Summary collapse

Instance Method Details

#transform(options = {}, &blk) ⇒ Object



2
3
4
5
6
# File 'lib/tigon/hash_extensions.rb', line 2

def transform(options = {}, &blk)
  tr = Tigon::HashTransformer.new(self, :exclusive => !!options[:exclusive])
  tr.instance_exec(&blk)
  tr.new_hash
end