Exception: Renderful::Error::NoComponentError
- Defined in:
- lib/renderful/error/no_component_error.rb
Instance Attribute Summary collapse
-
#entry ⇒ Object
readonly
Returns the value of attribute entry.
Instance Method Summary collapse
-
#initialize(entry, *args) ⇒ NoComponentError
constructor
A new instance of NoComponentError.
Constructor Details
#initialize(entry, *args) ⇒ NoComponentError
Returns a new instance of NoComponentError.
8 9 10 11 12 |
# File 'lib/renderful/error/no_component_error.rb', line 8 def initialize(entry, *args) @entry = entry super "Cannot find component for content type #{entry.content_type}", *args end |
Instance Attribute Details
#entry ⇒ Object (readonly)
Returns the value of attribute entry.
6 7 8 |
# File 'lib/renderful/error/no_component_error.rb', line 6 def entry @entry end |