Class: Vendor::Template::Locals
- Inherits:
-
Object
- Object
- Vendor::Template::Locals
- Defined in:
- lib/vendor/template.rb
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(options) ⇒ Locals
constructor
A new instance of Locals.
Constructor Details
#initialize(options) ⇒ Locals
Returns a new instance of Locals.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/vendor/template.rb', line 9 def initialize() # Create methods for each of the options (class << self; self; end).class_eval do .each_pair do |key, value| define_method key.to_sym do value end end end end |
Instance Method Details
#get_binding ⇒ Object
20 21 22 |
# File 'lib/vendor/template.rb', line 20 def get_binding return binding() end |