Class: Compel::Coercion::Type
- Inherits:
-
Object
- Object
- Compel::Coercion::Type
- Defined in:
- lib/compel/coercion/types/type.rb
Direct Known Subclasses
Array, Boolean, Date, DateTime, Float, Hash, Integer, JSON, Regexp, String, Time
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #coerce ⇒ Object
-
#initialize(value, options = {}) ⇒ Type
constructor
A new instance of Type.
Constructor Details
#initialize(value, options = {}) ⇒ Type
Returns a new instance of Type.
9 10 11 12 |
# File 'lib/compel/coercion/types/type.rb', line 9 def initialize(value, = {}) @value = value @options = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
6 7 8 |
# File 'lib/compel/coercion/types/type.rb', line 6 def @options end |
#value ⇒ Object
Returns the value of attribute value.
6 7 8 |
# File 'lib/compel/coercion/types/type.rb', line 6 def value @value end |