Module: EagerBeaver::ClassMethods

Defined in:
lib/eager_beaver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contextObject

Returns the value of attribute context.



45
46
47
# File 'lib/eager_beaver.rb', line 45

def context
  @context
end

Instance Method Details

#add_method_handler(&block) ⇒ Object



41
42
43
# File 'lib/eager_beaver.rb', line 41

def add_method_handler(&block)
  method_handlers << MethodHandler.new(&block)
end

#method_handlersObject



37
38
39
# File 'lib/eager_beaver.rb', line 37

def method_handlers
  @method_handlers ||= []
end