Sha256: 68b7966d9ef609bdf3c13e1c745f5bd419900f403fc67f9a16f540aa5299ff0c

Contents?: true

Size: 258 Bytes

Versions: 4

Compression:

Stored size: 258 Bytes

Contents

# frozen_string_literal: true

module Helium
  class Console
    define_formatter_for TrueClass do
      def call
        green('true')
      end
    end

    define_formatter_for FalseClass do
      def call
        red('false')
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
helium-console-0.1.11 lib/helium/console/registry/booleans.rb
helium-console-0.1.10 lib/helium/console/registry/booleans.rb
helium-console-0.1.9 lib/helium/console/registry/booleans.rb
helium-console-0.1.8 lib/helium/console/registry/booleans.rb