Class: ActiveModel::Attribute::Uninitialized
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::ActiveModel::Attribute
|
|
Instance Chain:
self,
::ActiveModel::Attribute
|
|
Inherits: |
ActiveModel::Attribute
|
Defined in: | activemodel/lib/active_model/attribute.rb |
Constant Summary
-
UNINITIALIZED_ORIGINAL_VALUE =
# File 'activemodel/lib/active_model/attribute.rb', line 243Object.new
Class Method Summary
- .new(name, type) ⇒ Uninitialized constructor
::ActiveModel::Attribute
- Inherited
.from_database, .from_user, | |
.new | This method should not be called directly. |
.null, .uninitialized, .with_cast_value |
Instance Attribute Summary
- #initialized? ⇒ Boolean readonly
::ActiveModel::Attribute
- Inherited
Instance Method Summary
::ActiveModel::Attribute
- Inherited
Constructor Details
.new(name, type) ⇒ Uninitialized
Instance Attribute Details
#initialized? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'activemodel/lib/active_model/attribute.rb', line 262
def initialized? false end
Instance Method Details
#forgetting_assignment
[ GitHub ]# File 'activemodel/lib/active_model/attribute.rb', line 266
def forgetting_assignment dup end
#original_value
[ GitHub ]# File 'activemodel/lib/active_model/attribute.rb', line 255
def original_value UNINITIALIZED_ORIGINAL_VALUE end
#value
[ GitHub ]# File 'activemodel/lib/active_model/attribute.rb', line 249
def value if block_given? yield name end end
#value_for_database
[ GitHub ]# File 'activemodel/lib/active_model/attribute.rb', line 259
def value_for_database end