Method: Monolens::Type::Object.dress

Defined in:
lib/monolens/type/object.rb

.dress(instance, registry, &block) ⇒ Object



6
7
8
9
10
# File 'lib/monolens/type/object.rb', line 6

def self.dress(instance, registry, &block)
  fail!("Object expected, got #{instance.class}", &block) unless instance.is_a?(::Hash)

  instance
end