Flowdock
class
Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Superclass: Value

Active Model Boolean Type

A class that behaves like a boolean type, including rules for coercion of user input.

  • "false", "f", "0", 0 or any other value in FALSE_VALUES will be coerced to false.

  • Empty strings are coerced to nil.

  • All other values will be coerced to true.

Constants

FALSE_VALUES = [ false, 0, "0", :"0", "f", :f, "F", :F, "false", :false, "FALSE", :FALSE, "off", :off, "OFF", :OFF, ].to_set.freeze

Attributes

Show files where this class is defined (1 file)
Register or log in to add new notes.