Exception: Lingo::NameNotFoundError

Inherits:
LingoError
  • Object
show all
Defined in:
lib/lingo/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LingoError

#class_name, #error

Constructor Details

#initialize(klass, name) ⇒ NameNotFoundError

Returns a new instance of NameNotFoundError.



197
198
199
# File 'lib/lingo/error.rb', line 197

def initialize(klass, name)
  @klass, @name = klass, name
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



195
196
197
# File 'lib/lingo/error.rb', line 195

def klass
  @klass
end

#nameObject (readonly)

Returns the value of attribute name.



195
196
197
# File 'lib/lingo/error.rb', line 195

def name
  @name
end

Instance Method Details

#to_sObject



201
202
203
# File 'lib/lingo/error.rb', line 201

def to_s
  "No such #{class_name} type `#{name}'."
end