Class: Virtus::Attribute::Set
- Inherits:
-
Collection
- Object
- Virtus::Attribute
- Object
- Collection
- Virtus::Attribute::Set
- Defined in:
- lib/virtus/attribute/set.rb
Overview
Set
Constant Summary
Constants included from TypeLookup
TypeLookup::EXTRA_CONST_ARGS, TypeLookup::TYPE_FORMAT
Instance Attribute Summary
Attributes inherited from Collection
Attributes inherited from Virtus::Attribute
#coercion_method, #default, #instance_variable_name, #name, #options, #reader_visibility, #writer_visibility
Instance Method Summary collapse
Methods inherited from Collection
#coerce, #initialize, merge_options, #new_collection
Methods inherited from Virtus::Attribute
build, #coerce, #define_accessor_methods, #define_reader_method, #define_writer_method, determine_type, #get, #get!, #initialize, #inspect, merge_options, #public_reader?, #public_writer?, #set, #set!, #value_coerced?
Methods included from DescendantsTracker
Methods included from TypeLookup
Methods included from Options
#accept_options, #accepted_options, #options
Constructor Details
This class inherits a constructor from Virtus::Attribute::Collection
Instance Method Details
#coerce_and_append_member(collection, entry) ⇒ Object
19 20 21 |
# File 'lib/virtus/attribute/set.rb', line 19 def coerce_and_append_member(collection, entry) collection << @member_type_instance.coerce(entry) end |