Class: Virtus::Coercion Abstract
- Inherits:
-
Object
- Object
- Virtus::Coercion
- Extended by:
- DescendantsTracker, Options, TypeLookup
- Defined in:
- lib/virtus/coercion.rb,
lib/virtus/coercion/date.rb,
lib/virtus/coercion/hash.rb,
lib/virtus/coercion/time.rb,
lib/virtus/coercion/array.rb,
lib/virtus/coercion/float.rb,
lib/virtus/coercion/object.rb,
lib/virtus/coercion/string.rb,
lib/virtus/coercion/symbol.rb,
lib/virtus/coercion/decimal.rb,
lib/virtus/coercion/integer.rb,
lib/virtus/coercion/numeric.rb,
lib/virtus/coercion/date_time.rb,
lib/virtus/coercion/true_class.rb,
lib/virtus/coercion/false_class.rb,
lib/virtus/coercion/time_coercions.rb
Overview
This class is abstract.
Coerce abstract class
Direct Known Subclasses
Defined Under Namespace
Modules: TimeCoercions Classes: Array, Date, DateTime, Decimal, FalseClass, Float, Hash, Integer, Numeric, Object, String, Symbol, Time, TrueClass
Constant Summary
Constants included from TypeLookup
Class Method Summary collapse
-
.[](name) ⇒ Class
private
Return a class that matches given name.
Methods included from TypeLookup
determine_type, extended, primitive
Methods included from Options
accept_options, accepted_options, options
Class Method Details
.[](name) ⇒ Class
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.
Return a class that matches given name
Defaults to Virtus::Coercion::Object
27 28 29 |
# File 'lib/virtus/coercion.rb', line 27 def self.[](name) determine_type(name) or Coercion::Object end |