class Shaf::Yard::AttributeMethodHandler

Handles call to Shaf::Serializer::attribute

Public Instance Methods

object() click to toggle source
# File lib/shaf/yard/attribute_method_handler.rb, line 11
def object
  AttributeObject.new(serializer_namespace, name).tap do |attr|
    attr.dynamic = true
    attr.name = name
  end
end