Class: Shaf::Yard::SerializerHandler
- Inherits:
-
YARD::Handlers::Ruby::Base
- Object
- YARD::Handlers::Ruby::Base
- Shaf::Yard::SerializerHandler
- Defined in:
- lib/shaf/yard/serializer_handler.rb
Instance Method Summary collapse
Instance Method Details
#name ⇒ Object
12 13 14 |
# File 'lib/shaf/yard/serializer_handler.rb', line 12 def name statement[0].source end |
#object ⇒ Object
20 21 22 23 24 |
# File 'lib/shaf/yard/serializer_handler.rb', line 20 def object ResourceObject.new(namespace, name).tap do |obj| obj.dynamic = true end end |
#serializer? ⇒ Boolean
16 17 18 |
# File 'lib/shaf/yard/serializer_handler.rb', line 16 def serializer? name.match? %r{Serializer$} end |