Exception: Curly::InvalidComponent
- Defined in:
- lib/curly/invalid_component.rb
Instance Attribute Summary collapse
-
#component ⇒ Object
readonly
Returns the value of attribute component.
Instance Method Summary collapse
-
#initialize(component) ⇒ InvalidComponent
constructor
A new instance of InvalidComponent.
- #message ⇒ Object
Constructor Details
#initialize(component) ⇒ InvalidComponent
Returns a new instance of InvalidComponent.
5 6 7 |
# File 'lib/curly/invalid_component.rb', line 5 def initialize(component) @component = component end |
Instance Attribute Details
#component ⇒ Object (readonly)
Returns the value of attribute component.
3 4 5 |
# File 'lib/curly/invalid_component.rb', line 3 def component @component end |
Instance Method Details
#message ⇒ Object
9 10 11 |
# File 'lib/curly/invalid_component.rb', line 9 def "invalid component `{{#{component}}}'" end |