class CustomReader

Public Class Methods

new(data = {}) click to toggle source
# File activemodel/test/models/custom_reader.rb, line 6
def initialize(data = {})
  @data = data
end

Public Instance Methods

[]=(key, value) click to toggle source
# File activemodel/test/models/custom_reader.rb, line 10
def []=(key, value)
  @data[key] = value
end
read_attribute_for_validation(key) click to toggle source
# File activemodel/test/models/custom_reader.rb, line 14
def read_attribute_for_validation(key)
  @data[key]
end