Module: Prequel::HashExtensions

Defined in:
lib/prequel/core_extensions.rb

Instance Method Summary collapse

Instance Method Details

#to_predicateObject

Raises:

  • (NotImplementedError)


3
4
5
6
# File 'lib/prequel/core_extensions.rb', line 3

def to_predicate
  raise NotImplementedError unless size == 1
  keys.first.eq(values.first)
end