File: boolean.rb

package info (click to toggle)
ruby-flipper 0.26.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,288 kB
  • sloc: ruby: 16,377; sh: 61; javascript: 24; 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