Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
english committed Feb 23, 2017
1 parent 4ade2a4 commit a7881ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Expand Up @@ -95,3 +95,6 @@ Style/RescueModifier:

Performance/RedundantBlockCall:
Enabled: false

Style/MethodName:
Enabled: false
2 changes: 0 additions & 2 deletions lib/speculation.rb
Expand Up @@ -253,7 +253,6 @@ def self.gen(spec, overrides = nil)
gensub(spec, overrides, [], :recursion_limit.ns => recursion_limit)
end

# rubocop:disable Style/MethodName
# @private
def self.Identifier(x)
case x
Expand All @@ -262,7 +261,6 @@ def self.Identifier(x)
else x
end
end
# rubocop:enable Style/MethodName

# Given a namespace-qualified symbol key, and a spec, spec name, predicate or
# regex-op makes an entry in the registry mapping key to the spec
Expand Down
2 changes: 1 addition & 1 deletion lib/speculation/test.rb
Expand Up @@ -559,7 +559,7 @@ def Method(x)
case x
when Identifier then x.get_method
when Method, UnboundMethod then x
else raise "unexpected method-like object #{x}"
else raise ArgumentError, "unexpected method-like object #{x}"
end
end
end
Expand Down

0 comments on commit a7881ab

Please sign in to comment.