methlab 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/methlab.rb +2 -2
  2. metadata +3 -3
@@ -59,7 +59,7 @@
59
59
  #
60
60
  module MethLab
61
61
 
62
- VERSION = "0.0.6"
62
+ VERSION = "0.0.7"
63
63
 
64
64
  # Integrates MethLab into all namespaces. It does this by patching itself
65
65
  # into ::main and Module.
@@ -320,7 +320,7 @@ module MethLab
320
320
  end
321
321
 
322
322
  self.send(:define_method, method_name) do
323
- unless self.instance_variables.select { |x| x == "@#{method_name}" }[0]
323
+ unless self.instance_variables.select { |x| x == "@#{method_name}" || x == "@#{method_name}".to_sym }[0]
324
324
  args = []
325
325
  MethLab.set_defaults([arg], args, :array)
326
326
  send(:instance_variable_set, "@#{method_name}", args[0])
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 6
9
- version: 0.0.6
8
+ - 7
9
+ version: 0.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Erik Hollensbe
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-10 00:00:00 -04:00
17
+ date: 2010-05-11 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies: []
20
20