class ModelWithRubyKeywordNamedAttributes

Public Instance Methods

attributes() click to toggle source
# File activemodel/test/cases/attribute_methods_test.rb, line 84
def attributes
  { begin: "value of begin", end: "value of end" }
end

Private Instance Methods

attribute(name) click to toggle source
# File activemodel/test/cases/attribute_methods_test.rb, line 89
def attribute(name)
  attributes[name.to_sym]
end