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

- (NameNotFoundError) initialize(klass, name)



178
179
180
# File 'lib/lingo/error.rb', line 178

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

Instance Attribute Details

- (Object) klass (readonly)

Returns the value of attribute klass



176
177
178
# File 'lib/lingo/error.rb', line 176

def klass
  @klass
end

- (Object) name (readonly)

Returns the value of attribute name



176
177
178
# File 'lib/lingo/error.rb', line 176

def name
  @name
end

Instance Method Details

- (Object) to_s



182
183
184
# File 'lib/lingo/error.rb', line 182

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