module Trybool
Constants
- TRUTHY_VALUES
- VERSION
Public Class Methods
<<(value)
click to toggle source
# File lib/trybool.rb, line 20 def self.<<(value) Array(value).each { |v| truthy_values << v } end
configure() { |self| ... }
click to toggle source
# File lib/trybool.rb, line 16 def self.configure yield(self) end
parse(value)
click to toggle source
# File lib/trybool.rb, line 24 def self.parse(value) truthy_values.include?(value) end
truthy_values()
click to toggle source
# File lib/trybool.rb, line 28 def self.truthy_values @_truthy_values ||= Set[*TRUTHY_VALUES] end