Class: Structural::Model::TypeCasts::Integer
- Inherits:
-
Object
- Object
- Structural::Model::TypeCasts::Integer
- Defined in:
- lib/structural/model/type_casts.rb
Class Method Summary collapse
Class Method Details
.cast(value) ⇒ Object
38 39 40 |
# File 'lib/structural/model/type_casts.rb', line 38 def self.cast(value) value.to_i end |
.type ⇒ Object
34 35 36 |
# File 'lib/structural/model/type_casts.rb', line 34 def self.type ::Integer end |