Module: HollaBack

Defined in:
lib/holla_back.rb,
lib/holla_back/response.rb,
lib/holla_back/option_loader.rb

Overview

The main HollaBack module that all objects inherit from

Defined Under Namespace

Modules: OptionLoader Classes: Response

Class Method Summary collapse

Class Method Details

.included(obj) ⇒ HollaBack::Response

Callback invoked to define the response method in the including object

Examples:

class SomeClass; include HollaBack; end

Parameters:

  • obj (Object)
    • the object that included HollaBack

Returns:



13
14
15
16
17
18
19
# File 'lib/holla_back.rb', line 13

def HollaBack.included(obj)
  obj.instance_eval do
    define_method(:response) { |responding_obj=self, options|
      HollaBack::Response.new(responding_obj, options)
    }
  end
end