Module: Intrinsic::Intrinsicism::Coercion::Proc

Defined in:
lib/intrinsic/intrinsicism/coercion/proc.rb

Class Method Summary collapse

Class Method Details

.convert(value) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/intrinsic/intrinsicism/coercion/proc.rb', line 5

def self.convert(value)
  begin
    value.to_proc
  rescue
    raise TypeError
  end
end