Sha256: e1faf0bd38818840b251f7d34db755cbfb63bb87167c6252afc2f4044c830ee1

Contents?: true

Size: 292 Bytes

Versions: 23

Compression:

Stored size: 292 Bytes

Contents

module Matest
  def self.configure(&block)
    block.call(Configure) if block_given?
  end
  
  
  module Configure
    module_function

    def color?
      @color ||= false
    end

    def color=(color)
      @color = color
    end

    def use_color
      @color = true
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
matest-1.7.4 lib/matest/configure.rb
matest-1.7.3 lib/matest/configure.rb
matest-1.7.2 lib/matest/configure.rb
matest-1.7.1 lib/matest/configure.rb
matest-1.7.0 lib/matest/configure.rb
matest-1.6.9 lib/matest/configure.rb
matest-1.6.6 lib/matest/configure.rb
matest-1.6.5 lib/matest/configure.rb
matest-1.6.4 lib/matest/configure.rb
matest-1.6.3 lib/matest/configure.rb
matest-1.6.2 lib/matest/configure.rb
matest-1.6.1 lib/matest/configure.rb
matest-1.6.0 lib/matest/configure.rb
matest-1.5.6 lib/matest/configure.rb
matest-1.5.5 lib/matest/configure.rb
matest-1.5.4 lib/matest/configure.rb
matest-1.5.3 lib/matest/configure.rb
matest-1.5.2 lib/matest/configure.rb
matest-1.5.1 lib/matest/configure.rb
matest-1.5.0 lib/matest/configure.rb