Sha256: fc39b6b9340a627a708274843215e1c9ae734ed7712c5da7821bbc408faaade5

Contents?: true

Size: 618 Bytes

Versions: 6

Compression:

Stored size: 618 Bytes

Contents

module Rainbow

  class NullPresenter < ::String

    def color(*values); self; end
    def background(*values); self; end
    def reset; self; end
    def bright; self; end
    def italic; self; end
    def underline; self; end
    def blink; self; end
    def inverse; self; end
    def hide; self; end

    def black; self; end
    def red; self; end
    def green; self; end
    def yellow; self; end
    def blue; self; end
    def magenta; self; end
    def cyan; self; end
    def white; self; end

    alias_method :foreground, :color
    alias_method :fg, :color
    alias_method :bg, :background

  end

end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
rainbow-2.1.0 lib/rainbow/null_presenter.rb
rubyjobbuilderdsl-0.0.2 vendor/bundle/ruby/2.1.0/gems/rainbow-2.0.0/lib/rainbow/null_presenter.rb
rubyjobbuilderdsl-0.0.1 vendor/bundle/ruby/2.1.0/gems/rainbow-2.0.0/lib/rainbow/null_presenter.rb
rainbow-2.0.0 lib/rainbow/null_presenter.rb
rainbow-1.99.2 lib/rainbow/null_presenter.rb
rainbow-1.99.1 lib/rainbow/null_presenter.rb