Class: FalseClass

Inherits:
Object
  • Object
show all
Defined in:
lib/sinatra/params/bool.rb

Class Method Summary collapse

Class Method Details

.convert_to(type) ⇒ Object



16
17
18
19
20
21
22
23
24
# File 'lib/sinatra/params/bool.rb', line 16

def self.convert_to(type)
    table = {
        FalseClass => :itself,
        Boolean => :itself,
        String => :to_s
    }

    table[type]
end