Exception: Render::Errors::InvalidType
- Inherits:
-
StandardError
- Object
- StandardError
- Render::Errors::InvalidType
- Defined in:
- lib/render/errors.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ InvalidType
constructor
A new instance of InvalidType.
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ InvalidType
Returns a new instance of InvalidType.
6 7 8 |
# File 'lib/render/errors.rb', line 6 def initialize(name) self.name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/render/errors.rb', line 4 def name @name end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/render/errors.rb', line 10 def to_s "Cannot parse type: #{name}." end |