module DSL::Maker::Boolean
This is a useful module that contains all the Boolean
handling we need.
Public Class Methods
coerce(value)
click to toggle source
# File lib/dsl/maker.rb, line 57 def self.coerce(value) if value return false if %w(no off false nil).include? value.to_s.downcase end # The bang-bang boolean-izes the value. We want this to be lossy. !!value end