y_support 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f967a550973926b2ab9ad6d5df847b29bad6a27d
4
- data.tar.gz: 95ad37737fff575a53db65f9da4ed829d58f8ccb
3
+ metadata.gz: 79b3711ed303558aedfe7d53e3aeef0edd50bcc6
4
+ data.tar.gz: 791cd64df5e2a2ca3df04ee734dd27585cdb331f
5
5
  SHA512:
6
- metadata.gz: ce8b98cfbc46430bde6d324045772e34ded7791a4fcb8470b71ebd9f01825bcc48f68afcf0670f28b70c728201b48acef96ac72cb4f2bbee8031f9da2200880d
7
- data.tar.gz: 6709e08ebd27dcdd0202239ab4a00197bd2978353b7b6f1b2894dd6832ac18ac8288d4a7a5ceb6e0787561961d8462b4ecd316150ddbee7c9927f1af93af97ed
6
+ metadata.gz: 0beebdc94e5ace854f9d89f9c18eb2c5cda5591a60659e65eeb49ddeb9a8aabfe4796c083fddd180c1f67257a6fb6ad25e9478f0261e43da8010b11564e21e64
7
+ data.tar.gz: a4535df1e3a5c7475469cbbd14aec4ed0d984169fbada2430c48499529a26dbfb07d042585d7aaa33091eb29092b1183c22cca17be6e92d31b6487b540e98fb8
@@ -167,6 +167,13 @@ module NameMagic
167
167
  self
168
168
  end
169
169
 
170
+ # Makes the class use the namespace supplied as the argument. If no argument
171
+ # is given, self will be the namespace.
172
+ #
173
+ def namespace! namespc=self
174
+ namespc.tap { |n| define_singleton_method :namespace do n end }
175
+ end
176
+
170
177
  # Returns the instance identified by the argument. NameError is raised, if
171
178
  # the argument does not identify an instance. (It can be an instance name
172
179
  # as string, symbol, or an instance itself, in which case, the instance in
@@ -1,3 +1,3 @@
1
1
  module YSupport
2
- VERSION = "2.0.6"
2
+ VERSION = "2.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: y_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - boris