File: boolean.rb

package info (click to toggle)
ruby-flipper 0.13.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,824 kB
  • sloc: ruby: 13,183; sh: 54; makefile: 14
file content (9 lines) | stat: -rw-r--r-- 181 bytes parent folder | download
1
2
3
4
5
6
7
8
9
module Flipper
  module Types
    class Boolean < Type
      def initialize(value = nil)
        @value = value.nil? ? true : Typecast.to_boolean(value)
      end
    end
  end
end