Class: Cakery::CakeryERBContext

Inherits:
Object
  • Object
show all
Defined in:
lib/cakery.rb

Instance Method Summary collapse

Constructor Details

#initializeCakeryERBContext

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_bindingObject



39
40
41
# File 'lib/cakery.rb', line 39

def get_binding
  return binding
end