Module: Jat::InstanceMethods

Included in:
Jat
Defined in:
lib/jat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



97
98
99
# File 'lib/jat.rb', line 97

def context
  @context
end

Instance Method Details

#configObject



107
108
109
# File 'lib/jat.rb', line 107

def config
  self.class.config
end

#initialize(context = {}) ⇒ Object



99
100
101
# File 'lib/jat.rb', line 99

def initialize(context = {})
  @context = context
end

#to_h(_object) ⇒ Object

Raises:



103
104
105
# File 'lib/jat.rb', line 103

def to_h(_object)
  raise Error, "Method #to_h must be implemented by plugin"
end