Exception: Fortitude::Errors::MissingNeed
- Defined in:
- lib/fortitude/errors.rb
Instance Attribute Summary collapse
-
#assigns ⇒ Object
readonly
Returns the value of attribute assigns.
-
#missing_needs ⇒ Object
readonly
Returns the value of attribute missing_needs.
-
#widget ⇒ Object
readonly
Returns the value of attribute widget.
Instance Method Summary collapse
-
#initialize(widget, missing_needs, assigns) ⇒ MissingNeed
constructor
A new instance of MissingNeed.
Constructor Details
#initialize(widget, missing_needs, assigns) ⇒ MissingNeed
Returns a new instance of MissingNeed.
8 9 10 11 12 13 |
# File 'lib/fortitude/errors.rb', line 8 def initialize(, missing_needs, assigns) super(%{The widget #{} requires the following parameters to render, but they were not supplied: #{missing_needs.sort_by(&:to_s).join(", ")}}) @widget = @missing_needs = missing_needs @assigns = assigns end |
Instance Attribute Details
#assigns ⇒ Object (readonly)
Returns the value of attribute assigns.
6 7 8 |
# File 'lib/fortitude/errors.rb', line 6 def assigns @assigns end |
#missing_needs ⇒ Object (readonly)
Returns the value of attribute missing_needs.
6 7 8 |
# File 'lib/fortitude/errors.rb', line 6 def missing_needs @missing_needs end |
#widget ⇒ Object (readonly)
Returns the value of attribute widget.
6 7 8 |
# File 'lib/fortitude/errors.rb', line 6 def @widget end |