Sha256: 5fc68c50857291553254f7e0400e0b48c1732921186967446260e2bb456fc9b2

Contents?: true

Size: 239 Bytes

Versions: 1

Compression:

Stored size: 239 Bytes

Contents

module Inspector
  module Constraints
    class True
      include Constraint

      def valid?(actual)
        !!actual
      end

      def to_s
        "be_true"
      end

      def inspect
        "#<true>"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
object-inspector-0.1.0 lib/inspector/constraints/true.rb