molten_core 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,11 +23,11 @@ class Array
23
23
  end
24
24
  end
25
25
 
26
- def with_extractable_options!
27
- options = self.extract_options!
28
-
29
- yield self, options
30
-
31
- self << options unless options.empty?
26
+ def extract_options
27
+ if last.is_a?(Hash) && last.extractable_options?
28
+ last
29
+ else
30
+ {}
31
+ end
32
32
  end
33
33
  end
@@ -1,3 +1,3 @@
1
1
  module MoltenCore
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: molten_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: