Class: RhContext::ERBConfig

Inherits:
Object show all
Defined in:
lib/rh.rb

Overview

ERBConfig context for subhash selection, or filter

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contextObject

Returns the value of attribute context.



27
28
29
# File 'lib/rh.rb', line 27

def context
  @context
end

#dataObject

Returns the value of attribute data.



26
27
28
# File 'lib/rh.rb', line 26

def data
  @data
end

Instance Method Details

#get_bindingObject

Bind this limited class with ERB templates



30
31
32
# File 'lib/rh.rb', line 30

def get_binding # rubocop: disable AccessorMethodName
  binding
end