Class: TRMNLP::Context::TemplateBinding
- Inherits:
-
Object
- Object
- TRMNLP::Context::TemplateBinding
- Defined in:
- lib/trmnlp/context.rb
Overview
bindings must match the ‘GET /render/view.html` route in app.rb
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(context, view) ⇒ TemplateBinding
constructor
A new instance of TemplateBinding.
Constructor Details
#initialize(context, view) ⇒ TemplateBinding
Returns a new instance of TemplateBinding.
156 157 158 159 |
# File 'lib/trmnlp/context.rb', line 156 def initialize(context, view) @screen_classes = context.screen_classes @view = view end |
Instance Method Details
#get_binding ⇒ Object
161 |
# File 'lib/trmnlp/context.rb', line 161 def get_binding = binding |