Class: Stenotype::ContextHandlers::Klass

Inherits:
Base
  • Object
show all
Defined in:
lib/stenotype/context_handlers/klass.rb

Overview

Plain Ruby class handler to support fetching data from a class

Instance Attribute Summary

Attributes inherited from Base

#context, #options

Instance Method Summary collapse

Methods inherited from Base

inherited, #initialize

Constructor Details

This class inherits a constructor from Stenotype::ContextHandlers::Base

Instance Method Details

#as_json(*_args) ⇒ Hash

TODO:

r.kapitonov Figure out the params

Returns a JSON representation of a Ruby class.

Returns:

  • (Hash)

    a JSON representation of a Ruby class



15
16
17
# File 'lib/stenotype/context_handlers/klass.rb', line 15

def as_json(*_args)
  {}
end