simple_struct 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/simple_struct.rb +3 -2
- metadata +3 -3
data/lib/simple_struct.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
class SimpleStruct
|
2
2
|
|
3
|
-
VERSION = "0.0.
|
3
|
+
VERSION = "0.0.3"
|
4
4
|
|
5
5
|
def self.new *members, &block
|
6
6
|
subclass = Class.new(self)
|
@@ -17,7 +17,8 @@ class SimpleStruct
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def self.inspect
|
20
|
-
|
20
|
+
return super unless self.respond_to?(:members)
|
21
|
+
%[#{to_s}(#{members*', '})]
|
21
22
|
end
|
22
23
|
|
23
24
|
def inspect
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_struct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -39,7 +39,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
39
39
|
version: '0'
|
40
40
|
segments:
|
41
41
|
- 0
|
42
|
-
hash:
|
42
|
+
hash: -157132864368385867
|
43
43
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
44
|
none: false
|
45
45
|
requirements:
|
@@ -48,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
48
|
version: '0'
|
49
49
|
segments:
|
50
50
|
- 0
|
51
|
-
hash:
|
51
|
+
hash: -157132864368385867
|
52
52
|
requirements: []
|
53
53
|
rubyforge_project:
|
54
54
|
rubygems_version: 1.8.24
|