Class: Virtus::Coercion::Object
- Inherits:
-
Virtus::Coercion
- Object
- Virtus::Coercion
- Virtus::Coercion::Object
- Defined in:
- lib/virtus/coercion/object.rb
Overview
Coerce Object values
Constant Summary
Constants included from TypeLookup
Class Method Summary collapse
-
.method_missing(method, *args) ⇒ Object
private
Passthrough given value.
Methods inherited from Virtus::Coercion
Methods included from DescendantsTracker
Methods included from TypeLookup
Methods included from Options
#accept_options, #accepted_options, #options
Class Method Details
.method_missing(method, *args) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Passthrough given value
15 16 17 18 19 20 21 |
# File 'lib/virtus/coercion/object.rb', line 15 def self.method_missing(method, *args) if method.to_s[0, 3] == 'to_' && args.size == 1 args.first else super end end |