class TrueClass

Public Class Methods

convert_to(type) click to toggle source
# File lib/sinatra/params/bool.rb, line 4
def self.convert_to(type)
    table = {
        TrueClass => :itself,
        Boolean => :itself,
        String => :to_s
    }

    table[type]
end