configable 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -42,9 +42,11 @@ module Configable
42
42
  open(@file,"wb") {|f| f.puts @values.ya2yaml(:syck_compatible => true) }
43
43
  end
44
44
 
45
- def [](*a)
45
+ def values
46
46
  @values ||= load
47
- @values[*a]
47
+ end
48
+ def [](*a)
49
+ self.values[*a]
48
50
  end
49
51
  def method(sym=nil)
50
52
  return @method if not sym
@@ -1,3 +1,3 @@
1
1
  module Configable
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - kmasamoto
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-27 00:00:00 +09:00
18
+ date: 2011-03-28 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies: []
21
21