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.



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

def context
  @context
end

Instance Method Details

#configObject



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

def config
  self.class.config
end

#initialize(context = {}) ⇒ Object



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

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

#to_h(_object) ⇒ Object

Raises:



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

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