Sha256: 460a355e285dcf757908049dcf3217b1b308f21260469d4a6621330b52943bff

Contents?: true

Size: 356 Bytes

Versions: 28

Compression:

Stored size: 356 Bytes

Contents

module Fission
  class UI
    attr_reader :stdout

    def initialize(stdout=$stdout)
      @stdout = stdout
    end

    def output(s)
      @stdout.puts s
    end

    def output_printf(string, key, value)
      @stdout.send :printf, string, key, value
    end

    def output_and_exit(s, exit_code)
      output s
      exit exit_code
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
veewee-0.5.0.alpha4 lib/fission.old/ui.rb
veewee-0.5.0.alpha3 lib/fission.old/ui.rb
veewee-0.5.0.alpha2 lib/fission.old/ui.rb
veewee-0.5.0.alpha1 lib/fission.old/ui.rb
veewee-0.4.5.1 lib/fission.old/ui.rb
veewee-0.4.5 lib/fission.old/ui.rb
veewee-0.4.5.pre1 lib/fission.old/ui.rb
veewee-0.4.4 lib/fission.old/ui.rb
veewee-0.4.3 lib/fission.old/ui.rb
veewee-0.4.2 lib/fission.old/ui.rb
veewee-0.4.1 lib/fission.old/ui.rb
veewee-0.4.0 lib/fission.old/ui.rb
veewee-0.3.12 lib/fission.old/ui.rb
veewee-0.3.11 lib/fission.old/ui.rb
veewee-0.3.10 lib/fission.old/ui.rb
veewee-0.3.9 lib/fission.old/ui.rb
veewee-0.3.0.alpha9 lib/fission/ui.rb
veewee-0.3.0.alpha8 lib/fission/ui.rb
veewee-0.3.0.alpha7 lib/fission/ui.rb
veewee-0.3.0.alpha6 lib/fission/ui.rb