scoped_struct 0.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +7 -0
- data/VERSION +1 -1
- metadata +3 -3
data/README
CHANGED
@@ -87,6 +87,13 @@ And if you want even more organizational fun, you can stick your methods in modu
|
|
87
87
|
include Fumbles
|
88
88
|
end
|
89
89
|
end
|
90
|
+
|
91
|
+
There�s a side effect of scoped_struct that people seem to enjoy, so I�ll include details here. One of the behind the scenes shenanigans is that the scoped methods also exist on the parent object as scopename_methodname; so, in the above examples, you could also call:
|
92
|
+
|
93
|
+
my_player.passes_attempted
|
94
|
+
my_player.passes_completed
|
95
|
+
|
96
|
+
Apparently some people would rather use the scope shortcut for declaration, but then call the methods the underscore way. Diff�rent strokes for diff�rent folks, but scoped_struct gives you both roads.
|
90
97
|
|
91
98
|
== Installation
|
92
99
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2
|
1
|
+
0.2.1
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scoped_struct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Ferrier
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-02-04 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -26,8 +26,8 @@ files:
|
|
26
26
|
- lib/scoped_struct.rb
|
27
27
|
- test/scoped_struct_test.rb
|
28
28
|
- Rakefile
|
29
|
-
- VERSION
|
30
29
|
- MIT-LICENSE
|
30
|
+
- VERSION
|
31
31
|
- README
|
32
32
|
has_rdoc: true
|
33
33
|
homepage: http://scopedstruct.rubyforge.org
|