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



13
14
15
16
17
18
19
20
# File 'lib/sinatra/params/bool.rb', line 13

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

    table[type]
end