Class: Drumknott::IncludePages
- Inherits:
-
Object
- Object
- Drumknott::IncludePages
- Defined in:
- lib/drumknott/include_pages.rb
Constant Summary collapse
- TRUE_OPTIONS =
%w[ true yes y ].freeze
Class Method Summary collapse
Class Method Details
.call(value) ⇒ Object
6 7 8 9 10 11 12 13 |
# 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 |