class Tengine::Core::FindByName::Error

Attributes

klass[R]
name[R]
options[R]

Public Class Methods

new(klass, name, options = nil) click to toggle source
# File lib/tengine/core/find_by_name.rb, line 8
def initialize(klass, name, options = nil)
  @klass, @name, @options = klass, name, options
end

Public Instance Methods

message() click to toggle source
# File lib/tengine/core/find_by_name.rb, line 11
def message
  result = "#{klass.name} named #{name.inspect}"
  result << " with #{options.inspect}" if options && !options.empty?
  result << ' not found'
  result
end