Exception: Smartdict::MissingOption

Inherits:
Error
  • Object
show all
Defined in:
lib/smartdict/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(option) ⇒ MissingOption

Returns a new instance of MissingOption.



14
15
16
# File 'lib/smartdict/errors.rb', line 14

def initialize(option)
  @option = option
end

Instance Method Details

#messageObject



18
19
20
# File 'lib/smartdict/errors.rb', line 18

def message
  "Translator option is missing: `#{@option}`"
end