flex_core 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flex_core.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 344c5912c4980bdaf83e916240dc6a2d915abe4c
|
4
|
+
data.tar.gz: 338afeecf564195282267923ed883e27311e2a1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3797e06f9893adcc4194ae5efcf4c41448ef533e6257574e2398e845653bda9e5b79cef9cb41c490753ff96977a2c36471758ada7a9328a47fb65d7a2294755a
|
7
|
+
data.tar.gz: af1c839f4f6a230ce83a20afbaf845c14ad5b7900d974bfe8d3053efe7c2abaf5efc951fe42b4df567ddd0841b3a426467b7ad85275411257814df099eb2e3f5
|
data/lib/flex_core.rb
CHANGED
@@ -133,6 +133,10 @@ class Hash
|
|
133
133
|
output
|
134
134
|
end
|
135
135
|
|
136
|
+
def keep! (*keys)
|
137
|
+
self.keep(*keys)
|
138
|
+
end
|
139
|
+
|
136
140
|
def trim_off (*keys)
|
137
141
|
output = self.dup
|
138
142
|
keys.each { |k|
|
@@ -141,6 +145,10 @@ class Hash
|
|
141
145
|
output
|
142
146
|
end
|
143
147
|
|
148
|
+
def trim_off! (*keys)
|
149
|
+
self.trim_off(*keys)
|
150
|
+
end
|
151
|
+
|
144
152
|
end
|
145
153
|
|
146
154
|
class NilClass
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flex_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugene Lai
|
@@ -36,7 +36,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
36
36
|
version: '0'
|
37
37
|
requirements: []
|
38
38
|
rubyforge_project:
|
39
|
-
rubygems_version: 2.6.
|
39
|
+
rubygems_version: 2.6.2
|
40
40
|
signing_key:
|
41
41
|
specification_version: 4
|
42
42
|
summary: Some powerful additions to ruby core classes
|