Module: RememberTheMilk
- Extended by:
- RememberTheMilk
- Included in:
- RememberTheMilk
- Defined in:
- lib/rememberthemilk.rb,
lib/rememberthemilk/api.rb,
lib/rememberthemilk/error.rb
Defined Under Namespace
Constant Summary collapse
- Version =
'0.0.3'
- Load =
Kernel.method(:load)
Instance Method Summary collapse
- #libdir(*args, &block) ⇒ Object
- #load(*args, &block) ⇒ Object
- #new(*args, &block) ⇒ Object
- #version ⇒ Object
Instance Method Details
#libdir(*args, &block) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/rememberthemilk.rb', line 9 def libdir(*args, &block) @libdir ||= File.(__FILE__).sub(/\.rb$/,'') libdir = args.empty? ? @libdir : File.join(@libdir, *args.map{|arg| arg.to_s}) ensure if block begin $LOAD_PATH.unshift(libdir) RememberTheMilk.send(:module_eval, &block) ensure $LOAD_PATH.shift() end end end |
#load(*args, &block) ⇒ Object
23 24 25 |
# File 'lib/rememberthemilk.rb', line 23 def load(*args, &block) Load.call(*args, &block) end |
#new(*args, &block) ⇒ Object
27 28 29 |
# File 'lib/rememberthemilk.rb', line 27 def new(*args, &block) Api.new(*args, &block) end |
#version ⇒ Object
5 6 7 |
# File 'lib/rememberthemilk.rb', line 5 def version RememberTheMilk::Version end |