Exception: Kotoshu::SuikaUnavailable
- Defined in:
- lib/kotoshu/core/exceptions.rb
Overview
Error raised when Japanese-language features are requested but the suika gem is unavailable. suika is a soft runtime dependency because its native extension (dartsclone) does not build on slim/minimal environments. All non-Japanese code paths are unaffected.
Instance Method Summary collapse
-
#initialize(detail = nil) ⇒ SuikaUnavailable
constructor
A new instance of SuikaUnavailable.
Constructor Details
#initialize(detail = nil) ⇒ SuikaUnavailable
Returns a new instance of SuikaUnavailable.
178 179 180 181 182 183 184 |
# File 'lib/kotoshu/core/exceptions.rb', line 178 def initialize(detail = nil) = "suika gem not loaded" += " (#{detail})" if detail += ". Install with: gem install suika" += ". Or set KOTOSHU_NO_SUIKA=1 to silence this in code paths that opt out." super() end |