Sha256: 6c3d2163d6babc749f2b872373f05377507f2cab56c3b3c419db01b61d33f72e

Contents?: true

Size: 181 Bytes

Versions: 34

Compression:

Stored size: 181 Bytes

Contents

module Flipper
  module Types
    class Boolean < Type
      def initialize(value = nil)
        @value = value.nil? ? true : Typecast.to_boolean(value)
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
flipper-0.15.0 lib/flipper/types/boolean.rb
flipper-0.14.0 lib/flipper/types/boolean.rb
flipper-0.13.0 lib/flipper/types/boolean.rb
flipper-0.13.0.beta1 lib/flipper/types/boolean.rb
flipper-0.12.2 lib/flipper/types/boolean.rb
flipper-0.12.1 lib/flipper/types/boolean.rb
flipper-0.12.0 lib/flipper/types/boolean.rb
flipper-0.11.0 lib/flipper/types/boolean.rb
flipper-0.11.0.rc1 lib/flipper/types/boolean.rb
flipper-0.11.0.beta9 lib/flipper/types/boolean.rb
flipper-0.11.0.beta8 lib/flipper/types/boolean.rb
flipper-0.11.0.beta7 lib/flipper/types/boolean.rb
flipper-0.11.0.beta6 lib/flipper/types/boolean.rb
flipper-0.11.0.beta5 lib/flipper/types/boolean.rb
flipper-0.11.0.beta4 lib/flipper/types/boolean.rb
flipper-0.11.0.beta3 lib/flipper/types/boolean.rb
flipper-0.11.0.beta1 lib/flipper/types/boolean.rb
flipper-0.10.2 lib/flipper/types/boolean.rb
flipper-0.10.1 lib/flipper/types/boolean.rb
flipper-0.10.0 lib/flipper/types/boolean.rb