coded_options 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -0
- data/lib/coded_options/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -19,7 +19,10 @@ into
|
|
19
19
|
The STATE_OPTIONS array is perfect for select tags. You can also use this in
|
20
20
|
a plain Ruby object as follows:
|
21
21
|
|
22
|
+
require "coded_options"
|
23
|
+
|
22
24
|
class Foo
|
25
|
+
extend CodedOptions
|
23
26
|
attr_accessor :state_id, :type_id
|
24
27
|
coded_options :state => %w(active closed), :type => %w(stupid awesome)
|
25
28
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coded_options
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.0.4
|
10
|
+
version: 0.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jason Dew
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-07-
|
18
|
+
date: 2010-07-14 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|