class Drumknott::IncludePages

Constants

TRUE_OPTIONS

Public Class Methods

call(value) click to toggle source
# File lib/drumknott/include_pages.rb, line 6
def self.call(value)
  case value
  when TrueClass, FalseClass
    value
  else
    value.nil? || TRUE_OPTIONS.include?(value.downcase)
  end
end