Class: Lorj::ERBConfig
Overview
This class limits ERB template to access only to config object data.
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
-
#get_binding ⇒ Object
Bind this limited class with ERB templates.
-
#initialize(config) ⇒ ERBConfig
constructor
A new instance of ERBConfig.
Constructor Details
#initialize(config) ⇒ ERBConfig
68 69 70 |
# File 'lib/lorj_account.rb', line 68 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
65 66 67 |
# File 'lib/lorj_account.rb', line 65 def config @config end |
#data ⇒ Object
Returns the value of attribute data.
66 67 68 |
# File 'lib/lorj_account.rb', line 66 def data @data end |
Instance Method Details
#get_binding ⇒ Object
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 |