File: boolean.rb

package info (click to toggle)
ruby-flipper 0.17.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,896 kB
  • sloc: ruby: 13,876; sh: 55; makefile: 14
file content (11 lines) | stat: -rw-r--r-- 209 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
require 'flipper/typecast'

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