123456789_123456789_123456789_123456789_123456789_

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:
Instance Chain:
Inherits: ActiveModel::Attribute
Defined in: activemodel/lib/active_model/attribute.rb

Constant Summary

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(name, type) ⇒ Uninitialized

[ GitHub ]

  
# File 'activemodel/lib/active_model/attribute.rb', line 245

def initialize(name, type)
  super(name, nil, type)
end

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

#with_type(type)

[ GitHub ]

  
# File 'activemodel/lib/active_model/attribute.rb', line 270

def with_type(type)
  self.class.new(name, type)
end