lite-ruby 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,14 @@
2
2
 
3
3
  class Struct
4
4
 
5
+ def [](key)
6
+ send(key)
7
+ end
8
+
9
+ def []=(key, val)
10
+ send("#{key}=", val)
11
+ end
12
+
5
13
  def attributes
6
14
  each_pair.with_object({}) { |(key, val), hash| hash[key] = val }
7
15
  end
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Ruby
5
5
 
6
- VERSION ||= '1.0.1'
6
+ VERSION ||= '1.0.2'
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-13 00:00:00.000000000 Z
11
+ date: 2019-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -152,6 +152,7 @@ files:
152
152
  - docs/KERNEL.md
153
153
  - docs/NUMERIC.md
154
154
  - docs/OBJECT.md
155
+ - docs/OPEN_STRUCT.md
155
156
  - docs/RANGE.md
156
157
  - docs/STRING.md
157
158
  - docs/STRUCT.md
@@ -170,6 +171,7 @@ files:
170
171
  - lib/lite/ruby/kernel.rb
171
172
  - lib/lite/ruby/numeric.rb
172
173
  - lib/lite/ruby/object.rb
174
+ - lib/lite/ruby/open_struct.rb
173
175
  - lib/lite/ruby/range.rb
174
176
  - lib/lite/ruby/string.rb
175
177
  - lib/lite/ruby/struct.rb