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 +7 -0
- data/lib/tasks/rubyforge_config.yml +1 -1
- metadata +2 -2
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.
|
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.
|
7
|
-
date: 2007-11-
|
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
|