Module: Modulla

Defined in:
lib/modulla.rb,
lib/modulla/version.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

VERSION =
"0.1.1"

Class Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object (private)



35
36
37
# File 'lib/modulla.rb', line 35

def method_missing(method, *args, &block)
  record(method, *args, &block)
end

Class Method Details

.extended(klass) ⇒ Object



8
9
10
# File 'lib/modulla.rb', line 8

def self.extended(klass)
  klass.extend ClassMethods
end

.new(&block) ⇒ Object



4
5
6
# File 'lib/modulla.rb', line 4

def self.new(&block)
  Module.new.extend(self).class_eval(&block)
end