Module: Virtus
- Defined in:
- lib/virtus.rb,
lib/virtus/version.rb,
lib/virtus/coercion.rb,
lib/virtus/attribute.rb,
lib/virtus/extensions.rb,
lib/virtus/value_object.rb,
lib/virtus/attribute/set.rb,
lib/virtus/attribute_set.rb,
lib/virtus/class_methods.rb,
lib/virtus/coercion/date.rb,
lib/virtus/coercion/hash.rb,
lib/virtus/coercion/time.rb,
lib/virtus/attribute/date.rb,
lib/virtus/attribute/hash.rb,
lib/virtus/attribute/time.rb,
lib/virtus/coercion/array.rb,
lib/virtus/coercion/float.rb,
lib/virtus/attribute/array.rb,
lib/virtus/attribute/class.rb,
lib/virtus/attribute/float.rb,
lib/virtus/coercion/object.rb,
lib/virtus/coercion/string.rb,
lib/virtus/coercion/symbol.rb,
lib/virtus/support/options.rb,
lib/virtus/attribute/object.rb,
lib/virtus/attribute/string.rb,
lib/virtus/attribute/symbol.rb,
lib/virtus/class_inclusions.rb,
lib/virtus/coercion/decimal.rb,
lib/virtus/coercion/integer.rb,
lib/virtus/coercion/numeric.rb,
lib/virtus/instance_methods.rb,
lib/virtus/attribute/boolean.rb,
lib/virtus/attribute/decimal.rb,
lib/virtus/attribute/integer.rb,
lib/virtus/attribute/numeric.rb,
lib/virtus/module_extensions.rb,
lib/virtus/support/equalizer.rb,
lib/virtus/coercion/date_time.rb,
lib/virtus/attribute/date_time.rb,
lib/virtus/coercion/true_class.rb,
lib/virtus/support/type_lookup.rb,
lib/virtus/attribute/collection.rb,
lib/virtus/coercion/false_class.rb,
lib/virtus/attribute/default_value.rb,
lib/virtus/coercion/time_coercions.rb,
lib/virtus/attribute/embedded_value.rb,
lib/virtus/attribute/default_value/from_symbol.rb,
lib/virtus/attribute/embedded_value/from_struct.rb,
lib/virtus/attribute/default_value/from_callable.rb,
lib/virtus/attribute/default_value/from_clonable.rb,
lib/virtus/attribute/embedded_value/from_open_struct.rb
Overview
Base module which adds Attribute API to your classes
Defined Under Namespace
Modules: ClassInclusions, ClassMethods, Extensions, InstanceMethods, ModuleExtensions, Options, TypeLookup, ValueObject Classes: Attribute, AttributeSet, Coercion, Equalizer
Constant Summary collapse
- EXTRA_CONST_ARGS =
Provides args for const_get and const_defined? to make them behave consistently across different versions of ruby
(RUBY_VERSION < '1.9' ? [] : [ false ]).freeze
- Undefined =
Represents an undefined parameter used by auto-generated option methods
Object.new.freeze
- VERSION =
'0.5.5'