rkh-monkey-lib 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +22 -1
- data/lib/monkey/object.rb +2 -1
- data/lib/monkey/string/like_pathname.rb +2 -0
- data/spec/monkey/string/like_pathname_spec.rb +1 -0
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -27,4 +27,25 @@ This would go to the file lib/monkey/object/magic_stuff.rb:
|
|
27
27
|
end
|
28
28
|
|
29
29
|
end
|
30
|
-
end
|
30
|
+
end
|
31
|
+
|
32
|
+
Add to lib/monkey/object.rb:
|
33
|
+
|
34
|
+
require "monkey/object/magic_stuff"
|
35
|
+
|
36
|
+
If that file didn't exist before, add to lib/monkey.rb:
|
37
|
+
|
38
|
+
require "monkey/object"
|
39
|
+
|
40
|
+
Write a spec in spec/monkey/object/magic_stuff_spec.rb:
|
41
|
+
|
42
|
+
require __FILE__.sub("monkey/object/magic_stuff_spec.rb", "spec_helper")
|
43
|
+
require "monkey/object/magic_stuff"
|
44
|
+
|
45
|
+
describe Monkey::Object::MagicStuff do
|
46
|
+
|
47
|
+
it "performs magic" do
|
48
|
+
# ...
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
data/lib/monkey/object.rb
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
require "monkey/object/backports"
|
1
|
+
require "monkey/object/backports"
|
2
|
+
require "monkey/object/instance_yield"
|