Module: Saddle::ClientAttributes
- Defined in:
- lib/saddle/client_attributes.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(obj) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/saddle/client_attributes.rb', line 4 def self.included(obj) obj.extend ClassMethods # We know that this module is included when saddle client is inherited, # so we're actually interested in the path of the caller two levels deep. path, = caller[2].partition(":") obj.implementation_root = File.dirname(path) end |