quick_attr 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quick_attr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dominic Tarr
|
@@ -19,17 +19,19 @@ date: 2010-09-10 00:00:00 +12:00
|
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
22
|
-
description: "\t\tusage
|
23
|
-
\t\trequire 'quick_attr'
|
24
|
-
\t\tclass C
|
25
|
-
\t\t\textend QuickAttr
|
26
|
-
\t\t\tquick_attr :name, :smell
|
27
|
-
\t\tend
|
28
|
-
|
29
|
-
\t\
|
30
|
-
\t\
|
31
|
-
|
32
|
-
\t\
|
22
|
+
description: "\t\tusage: <br>\n\
|
23
|
+
\t\trequire 'quick_attr'<br>\n\
|
24
|
+
\t\tclass C<br>\n\
|
25
|
+
\t\t\textend QuickAttr<br>\n\
|
26
|
+
\t\t\tquick_attr :name, :smell<br>\n\
|
27
|
+
\t\tend<br>\n\
|
28
|
+
<br>\n\
|
29
|
+
\t\t#set attr by passing value<br>\n\
|
30
|
+
\t\tc = C.new.name(\"bobaloba ding-dong\").smell(\"fishy\")<br>\n\
|
31
|
+
<br>\n\
|
32
|
+
\t\t#get attr by calling without args...<br>\n\
|
33
|
+
\t\tputs c.name\t# bobaloba ding-dong<br>\n\
|
34
|
+
\t\tputs c.smell\t# fishy<br>\n"
|
33
35
|
email: dominic.tarr@gmail.com
|
34
36
|
executables: []
|
35
37
|
|