Class: Kramdown::Options::Boolean

Inherits:
Object
  • Object
show all
Defined in:
lib/kramdown/options.rb

Overview

Helper class introducing a boolean type for specifying boolean values (true and false) as option types.

Class Method Summary collapse

Class Method Details

.===(other) ⇒ Object

Return true if other is either true or false



34
35
36
# File 'lib/kramdown/options.rb', line 34

def self.===(other)
  FalseClass === other || TrueClass === other
end