fast_struct 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/fast_struct.rb +6 -2
  2. metadata +6 -8
@@ -6,8 +6,12 @@ class FastStruct
6
6
  end
7
7
  end
8
8
 
9
- def method_missing _k, v=nil
10
- return @hash[_k]
9
+ def method_missing k, v=nil
10
+ k_str = k.to_s
11
+ if k_str[-1].chr == "="
12
+ @hash[k_str[0, k_str.size - 1].to_sym] = v
13
+ end
14
+ return @hash[k]
11
15
  end
12
16
 
13
17
  def to_hash
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fast_struct
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease: false
4
+ hash: 27
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
  - Aditya Bhargava
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-02-26 00:00:00 -08:00
19
- default_executable:
18
+ date: 2013-02-26 00:00:00 Z
20
19
  dependencies: []
21
20
 
22
21
  description: A very fast implementation of OpenStruct that also supports deep wrapping.
@@ -29,7 +28,6 @@ extra_rdoc_files: []
29
28
 
30
29
  files:
31
30
  - lib/fast_struct.rb
32
- has_rdoc: true
33
31
  homepage: https://www.github.com/egonSchiele/fast_struct
34
32
  licenses: []
35
33
 
@@ -59,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
57
  requirements: []
60
58
 
61
59
  rubyforge_project:
62
- rubygems_version: 1.3.7
60
+ rubygems_version: 1.8.25
63
61
  signing_key:
64
62
  specification_version: 3
65
63
  summary: A very fast implementation of OpenStruct that also supports deep wrapping.