lib/clamp/truthy.rb in clamp-1.2.1 vs lib/clamp/truthy.rb in clamp-1.3.0

- old
+ new

@@ -1,7 +1,9 @@ -module Clamp +# frozen_string_literal: true - TRUTHY_VALUES = %w(1 yes enable on true).freeze +module Clamp #:nodoc: + + TRUTHY_VALUES = %w[1 yes enable on true].freeze def self.truthy?(arg) TRUTHY_VALUES.include?(arg.to_s.downcase) end