Class: Lorj::ERBConfig

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

Overview

This class limits ERB template to access only to config object data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ ERBConfig



68
69
70
# File 'lib/lorj_account.rb', line 68

def initialize(config)
  @config = config
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



65
66
67
# File 'lib/lorj_account.rb', line 65

def config
  @config
end

#dataObject

Returns the value of attribute data.



66
67
68
# File 'lib/lorj_account.rb', line 66

def data
  @data
end

Instance Method Details

#get_bindingObject

Bind this limited class with ERB templates



73
74
75
# File 'lib/lorj_account.rb', line 73

def get_binding # rubocop: disable AccessorMethodName
  binding
end