Module: Callbacks

Defined in:
lib/callbacks.rb,
lib/classmethods.rb,
lib/callbackchain.rb,
lib/instancemethods.rb

Overview

Just a test!

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: CallbackChain

Constant Summary collapse

LIBPATH =
::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
PATH =
::File.dirname(LIBPATH) + ::File::SEPARATOR

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Sets all things right



14
15
16
17
# File 'lib/callbacks.rb', line 14

def self.included(base) #:nodoc:
  base.extend Callbacks::ClassMethods
  base.send(:include, Callbacks::InstanceMethods)
end

.libpath(*args) ⇒ Object



23
24
25
# File 'lib/callbacks.rb', line 23

def self.libpath( *args )
  args.empty? ? LIBPATH : ::File.join(LIBPATH, *args)
end

.path(*args) ⇒ Object



27
28
29
# File 'lib/callbacks.rb', line 27

def self.path( *args )
  args.empty? ? PATH : ::File.join(PATH, *args)
end

.versionObject



19
20
21
# File 'lib/callbacks.rb', line 19

def self.version
  VERSION
end