Exception: Tryouts::NoDrillType

Inherits:
Exception
  • Object
show all
Defined in:
lib/tryouts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(t) ⇒ NoDrillType

Returns a new instance of NoDrillType.



41
# File 'lib/tryouts.rb', line 41

def initialize(t); @tname = t; end

Instance Attribute Details

#tnameObject

Returns the value of attribute tname.



40
41
42
# File 'lib/tryouts.rb', line 40

def tname
  @tname
end

Instance Method Details

#messageObject



42
43
44
45
# File 'lib/tryouts.rb', line 42

def message
  vdt = Tryouts::Drill.valid_dtypes
  "Tryout '#{@tname}' has no drill type. Should be: #{vdt.join(', ')}"
end