Class: Shaf::Yard::AttributeMethodHandler
- Inherits:
-
BaseMethodHandler
- Object
- YARD::Handlers::Ruby::Base
- BaseMethodHandler
- Shaf::Yard::AttributeMethodHandler
- Defined in:
- lib/shaf/yard/attribute_method_handler.rb
Overview
Handles call to Shaf::Serializer::attribute
Instance Method Summary collapse
Methods inherited from BaseMethodHandler
#name, #process, #serializer_namespace
Instance Method Details
#object ⇒ Object
11 12 13 14 15 16 |
# 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 |