Module: Intrinsic::Intrinsicism::Coercion::Array

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

Class Method Summary collapse

Class Method Details

.convert(value) ⇒ Object



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

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