method

value

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: Attribute
value() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/attribute.rb, line 41
    def value
      # `defined?` is cheaper than `||=` when we get back falsy values
      @value = type_cast(value_before_type_cast) unless defined?(@value)
      @value
    end
Register or log in to add new notes.