Exception: Render::Errors::InvalidType

Inherits:
StandardError
  • Object
show all
Defined in:
lib/render/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/render/errors.rb', line 4

def name
  @name
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/render/errors.rb', line 10

def to_s
  "Cannot parse type: #{name}."
end