Class: Thor::Task
- Inherits:
-
Object
- Object
- Thor::Task
- Defined in:
- lib/acquia_toolbelt/thor.rb
Overview
Patch handle_no_method_error? to work with rubinius’ error text.
Instance Method Summary collapse
Instance Method Details
#handle_no_method_error?(instance, error, caller) ⇒ Boolean
88 89 90 91 92 93 |
# File 'lib/acquia_toolbelt/thor.rb', line 88 def handle_no_method_error?(instance, error, caller) not_debugging?(instance) && ( error. =~ /^undefined method `#{name}' for #{Regexp.escape(instance.to_s)}$/ || error. =~ /undefined method `#{name}' on an instance of #{Regexp.escape(instance.class.name)}/ ) end |