ruby_extensions 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/m_object.rb CHANGED
@@ -18,6 +18,13 @@ class Object
18
18
  logger.info x unless logger.nil?
19
19
  end
20
20
 
21
+ def send_with_chain(methods, *args)
22
+ obj = self
23
+ methods = [methods] unless methods.is_a?(Array)
24
+ methods.each {|m| obj = obj.send(m, *args)}
25
+ obj
26
+ end
27
+
21
28
  =begin
22
29
  ivar_cache allows you to cache the results of the block into an instance variable in a class,
23
30
  and then will serve up that instance variable the next time you call that method again.
@@ -2,4 +2,4 @@
2
2
  gem_name: ruby_extensions
3
3
  package: ruby_extensions
4
4
  project: magrathea
5
- version: 1.0.2
5
+ version: 1.0.3
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: ruby_extensions
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.2
7
- date: 2007-11-09 00:00:00 -05:00
6
+ version: 1.0.3
7
+ date: 2007-11-12 00:00:00 -05:00
8
8
  summary: ruby_extensions
9
9
  require_paths:
10
10
  - lib