Module: Kablam

Defined in:
lib/kablam.rb,
lib/kablam/forms.rb,
lib/kablam/engine.rb,
lib/kablam/kablam_helper.rb,
lib/kablam/kablam_record.rb,
lib/generators/kablam/forms_generator.rb,
lib/generators/kablam/install_generator.rb,
lib/generators/kablam/messaging_generator.rb

Defined Under Namespace

Modules: ClassMethods, Generators, InstanceMethods, KablamHelper Classes: Engine, Forms, KablamRecord

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



43
44
45
46
# File 'lib/kablam.rb', line 43

def self.included(receiver)
  receiver.extend         ClassMethods
  receiver.send :include, InstanceMethods
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Kablam)

    the object that the method was called on



48
49
50
# File 'lib/kablam.rb', line 48

def self.setup
  yield self
end