Module: TableData::Coercion
- Defined in:
- lib/tabledata/coercion.rb
Class Method Summary collapse
Class Method Details
.[](key) ⇒ Object
7 8 9 |
# File 'lib/tabledata/coercion.rb', line 7 def self.[](key) @coerce[key] end |
.coercing(key, &block) ⇒ Object
11 12 13 |
# File 'lib/tabledata/coercion.rb', line 11 def self.coercing(key, &block) @coerce[key] = block end |