Class: Chatwerk::Views::NoViolationsView
- Defined in:
- lib/chatwerk/views/no_violations_view.rb
Instance Attribute Summary
Attributes inherited from BaseView
Instance Method Summary collapse
Methods inherited from BaseView
Constructor Details
This class inherits a constructor from Chatwerk::Views::BaseView
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Chatwerk::Views::BaseView
Instance Method Details
#template(package:, constant_name: nil) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/chatwerk/views/no_violations_view.rb', line 6 def template(package:, constant_name: nil) if constant_name.nil? <<~MESSAGE No violations found in #{package.name.inspect}. MESSAGE else <<~MESSAGE No violations found in #{package.name.inspect} for #{constant_name.inspect}. Ensure that constant_name is given in the format of "::ConstantName" or "::ConstantName::NestedConstant". MESSAGE end end |