GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
pulled Integer, Module, Object, Proc, and Symbol utitilities into modules
automatthew (author)
Sun Jun 29 09:52:12 -0700 2008
commit  310f92a69be1924d4769f2a26d71291cd6aa664a
tree    319371dd727f94c27de29aae44a123cb2360a76a
parent  1559da9d982816a666f113420195b36e0f26060f
...
19
20
21
22
 
23
24
25
...
19
20
21
 
22
23
24
25
0
@@ -19,6 +19,6 @@ module Waves
0
   end
0
 end
0
 
0
-class Integer
0
+class Integer # :nodoc:
0
   include Waves::Utilities::Integer
0
 end
0
\ No newline at end of file
...
16
17
18
19
 
20
21
22
...
16
17
18
 
19
20
21
22
0
@@ -16,6 +16,6 @@ module Waves
0
   end
0
 end
0
 
0
-class Module
0
+class Module # :nodoc:
0
   include Waves::Utilities::Module
0
 end
0
\ No newline at end of file
...
1
2
3
4
5
6
7
8
9
10
11
12
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
15
16
17
 
 
 
 
18
...
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
20
21
22
23
24
25
26
0
@@ -1,17 +1,25 @@
0
-class Object
0
- # This is an extremely powerful little function that will be built-in to Ruby 1.9.
0
- # This version is from Mauricio Fernandez via ruby-talk. Works like instance_eval
0
- # except that you can pass parameters to the block. This means you can define a block
0
- # intended for use with instance_eval, pass it to another method, which can then
0
- # invoke with parameters. This is used quite a bit by the Waves::Mapping code.
0
- def instance_exec(*args, &block)
0
- mname = "__instance_exec_#{Thread.current.object_id.abs}"
0
- class << self; self end.class_eval{ define_method(mname, &block) }
0
- begin
0
- ret = send(mname, *args)
0
- ensure
0
- class << self; self end.class_eval{ undef_method(mname) } rescue nil
0
+module Waves
0
+ module Utilities
0
+ module Object
0
+ # This is an extremely powerful little function that will be built-in to Ruby 1.9.
0
+ # This version is from Mauricio Fernandez via ruby-talk. Works like instance_eval
0
+ # except that you can pass parameters to the block. This means you can define a block
0
+ # intended for use with instance_eval, pass it to another method, which can then
0
+ # invoke with parameters. This is used quite a bit by the Waves::Mapping code.
0
+ def instance_exec(*args, &block)
0
+ mname = "__instance_exec_#{Thread.current.object_id.abs}"
0
+ class << self; self end.class_eval{ define_method(mname, &block) }
0
+ begin
0
+ ret = send(mname, *args)
0
+ ensure
0
+ class << self; self end.class_eval{ undef_method(mname) } rescue nil
0
+ end
0
+ ret
0
+ end
0
     end
0
- ret
0
   end
0
 end
0
+
0
+class Object # :nodoc:
0
+ include Waves::Utilities::Object
0
+end
0
\ No newline at end of file
...
11
12
13
14
 
15
16
17
...
11
12
13
 
14
15
16
17
0
@@ -11,6 +11,6 @@ module Waves
0
   end
0
 end
0
 
0
-class Proc
0
+class Proc # :nodoc:
0
   include Waves::Utilities::Proc
0
 end
0
\ No newline at end of file
...
10
11
12
13
 
14
15
16
...
10
11
12
 
13
14
15
16
0
@@ -10,6 +10,6 @@ module Waves
0
   end
0
 end
0
 
0
-class Symbol
0
+class Symbol # :nodoc:
0
   include Waves::Utilities::Symbol
0
 end
0
\ No newline at end of file

Comments

    No one has commented yet.