Class: Roby::CLI::Gen::Helpers::Context Private
- Defined in:
- lib/roby/cli/gen/helpers.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Helper class to render a template in a controlled context
Instance Method Summary collapse
- #context ⇒ Object private
-
#initialize(vars) ⇒ Context
constructor
private
A new instance of Context.
- #method_missing(m) ⇒ Object private
Constructor Details
#initialize(vars) ⇒ Context
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Context.
160 161 162 |
# File 'lib/roby/cli/gen/helpers.rb', line 160 def initialize(vars) @vars = vars end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
164 165 166 |
# File 'lib/roby/cli/gen/helpers.rb', line 164 def method_missing(m) @vars.fetch(m.to_s) end |
Instance Method Details
#context ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
168 169 170 |
# File 'lib/roby/cli/gen/helpers.rb', line 168 def context binding end |