Sha256: 0066fe9feeea545b069d855e8b62a90dab2d601b827933e89cc8d12f2776f78d

Contents?: true

Size: 226 Bytes

Versions: 25

Compression:

Stored size: 226 Bytes

Contents

module Jack
  class UI
    class << self
      @@mute = false
      def mute
        @@mute
      end
      def mute=(v)
        @@mute=v
      end
      def say(msg='')
        puts msg unless mute
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
jack-eb-1.3.0 lib/jack/ui.rb
jack-eb-1.2.1 lib/jack/ui.rb
jack-eb-1.2.0 lib/jack/ui.rb
jack-eb-1.1.2 lib/jack/ui.rb
jack-eb-1.1.1 lib/jack/ui.rb
jack-eb-1.1.0 lib/jack/ui.rb
jack-eb-1.0.1 lib/jack/ui.rb
jack-eb-1.0.0 lib/jack/ui.rb
jack-eb-0.3.0 lib/jack/ui.rb
jack-eb-0.2.0 lib/jack/ui.rb
jack-eb-0.1.6 lib/jack/ui.rb
jack-eb-0.1.5 lib/jack/ui.rb
jack-eb-0.1.4 lib/jack/ui.rb
jack-eb-0.1.3 lib/jack/ui.rb
jack-eb-0.1.2 lib/jack/ui.rb
jack-eb-0.1.1 lib/jack/ui.rb
jack-eb-0.1.0 lib/jack/ui.rb
jack-eb-0.0.9 lib/jack/ui.rb
jack-eb-0.0.8 lib/jack/ui.rb
jack-eb-0.0.7 lib/jack/ui.rb