Class: Cakery::CakeryERBContext
- Inherits:
-
Object
- Object
- Cakery::CakeryERBContext
- Defined in:
- lib/cakery.rb
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize ⇒ CakeryERBContext
constructor
A new instance of CakeryERBContext.
- #method_missing(name, *args, &block) ⇒ Object
Constructor Details
#initialize ⇒ CakeryERBContext
Returns a new instance of CakeryERBContext.
27 28 |
# File 'lib/cakery.rb', line 27 def initialize end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/cakery.rb', line 30 def method_missing name, *args, &block #if name =~ /=/ #name = ('@'+name.to_s.gsub(/=/, "")).to_sym #self.instance_variable_set(name, args.first) #else return CakeERBContextTwoClauseHelper.new(self, name) #end end |
Instance Method Details
#get_binding ⇒ Object
39 40 41 |
# File 'lib/cakery.rb', line 39 def get_binding return binding end |