Exception: Sqreen::Rules::BindingAccessorMetrics::NoExpressions

Inherits:
Exception
  • Object
show all
Defined in:
lib/sqreen/rules/binding_accessor_metrics.rb

Overview

Exception thrown when no expression are present

Instance Method Summary collapse

Methods inherited from Exception

#log_message

Constructor Details

#initialize(expr) ⇒ NoExpressions

Returns a new instance of NoExpressions.



16
17
18
# File 'lib/sqreen/rules/binding_accessor_metrics.rb', line 16

def initialize(expr)
  super("No valid expressions defined in #{expr.inspect}")
end