Module: Intrinsic::Intrinsicism::Coercion::Symbol
- Defined in:
- lib/intrinsic/intrinsicism/coercion/symbol.rb
Class Method Summary collapse
Class Method Details
.convert(value) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/intrinsic/intrinsicism/coercion/symbol.rb', line 5 def self.convert(value) begin value.to_sym rescue raise TypeError end end |