params 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/params.rb +1 -3
  2. metadata +2 -2
data/lib/params.rb CHANGED
@@ -1,13 +1,11 @@
1
-
2
1
  # A simple params module.
3
2
  module BBFS
4
3
  module PARAMS
5
4
  def parameter(name, default_value, description)
6
5
  self.instance_variable_set '@' + name, default_value
7
- self.class.send('attr_reader', name)
6
+ self.class.send('attr_accessor', name)
8
7
  end
9
8
  module_function :parameter
10
-
11
9
  end
12
10
  end
13
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: params
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-04-08 00:00:00.000000000Z
13
+ date: 2012-04-11 00:00:00.000000000Z
14
14
  dependencies: []
15
15
  description: Dynamically stores, parses and providers params. Uses module local readers.
16
16
  email: kolmanv@gmail.com