Permalink
Browse files

Refactor DSL methods to be simpler

  • Loading branch information...
1 parent 893154a commit bf9bba63d0ee2098ec736c0013363a2abc740cd9 @dkubb committed Oct 5, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −2 config/flay.yml
  2. +2 −2 lib/abstract_type.rb
View
4 config/flay.yml
@@ -1,3 +1,3 @@
---
-threshold: 9
-total_score: 21
+threshold: 8
+total_score: 20
View
4 lib/abstract_type.rb
@@ -59,7 +59,7 @@ module AbstractMethodDeclarations
#
# @api public
def abstract_method(*names)
- names.each { |name| create_abstract_instance_method(name) }
+ names.each(&method(:create_abstract_instance_method))
self
end
@@ -79,7 +79,7 @@ def abstract_method(*names)
#
# @api private
def abstract_singleton_method(*names)
- names.each { |name| create_abstract_singleton_method(name) }
+ names.each(&method(:create_abstract_singleton_method))
self
end

0 comments on commit bf9bba6

Please sign in to comment.