Sha256: aa5395aaecab9a9fbf984c0e3039bce68f62b30379d230899cdea9218dd2dc98
Contents?: true
Size: 537 Bytes
Versions: 3
Compression:
Stored size: 537 Bytes
Contents
# frozen_string_literal: true module I18nJS class CLI class UI def initialize(stdout:, stderr:) @stdout = stdout @stderr = stderr end def stdout_print(*message) @stdout << "#{message.join(' ')}\n" end def stderr_print(*message) @stderr << "#{message.join(' ')}\n" end def fail_with(*message) stderr_print(message) exit(1) end def exit_with(*message) stdout_print(message) exit(0) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
i18n-js-4.0.0.alpha3 | lib/i18n-js/cli/ui.rb |
i18n-js-4.0.0.alpha2 | lib/i18n-js/cli/ui.rb |
i18n-js-4.0.0.alpha1 | lib/i18n-js/cli/ui.rb |