Class: Shaf::Yard::SerializerHandler

Inherits:
YARD::Handlers::Ruby::Base
  • Object
show all
Defined in:
lib/shaf/yard/serializer_handler.rb

Instance Method Summary collapse

Instance Method Details

#nameObject



12
13
14
# File 'lib/shaf/yard/serializer_handler.rb', line 12

def name
  statement[0].source
end

#objectObject



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

Returns:

  • (Boolean)


16
17
18
# File 'lib/shaf/yard/serializer_handler.rb', line 16

def serializer?
  name.match? %r{Serializer$}
end