module Bake::Type::Boolean
Public Class Methods
Source
# File vendor/bundle/ruby/3.4.0/gems/bake-0.23.1/lib/bake/type/boolean.rb, line 13 def self.composite? false end
Source
# File vendor/bundle/ruby/3.4.0/gems/bake-0.23.1/lib/bake/type/boolean.rb, line 17 def self.parse(input) if input =~ /t(rue)?|y(es)?/i return true elsif input =~ /f(alse)?|n(o)?/i return false else raise ArgumentError, "Cannot coerce #{input.inspect} into boolean!" end end