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.(::File.dirname(__FILE__)) + ::File::SEPARATOR
- PATH =
::File.dirname(LIBPATH) + ::File::SEPARATOR
Class Method Summary collapse
-
.included(base) ⇒ Object
Sets all things right.
- .libpath(*args) ⇒ Object
- .path(*args) ⇒ Object
- .version ⇒ Object
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 |
.version ⇒ Object
19 20 21 |
# File 'lib/callbacks.rb', line 19 def self.version VERSION end |