unpack_sockaddr_in

Socket.unpack_sockaddr_in(sockaddr) => [port, ip_address] Class Public methods Unpacks sockaddr into port and ip_address. sockaddr should be a string or an addrinfo for AF_INET/AF_INET6. sockaddr = Socket.sockaddr_in(80, "127.0.0.1") p sockaddr #=> "\x02\x00\x00P\x7F\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00" p Socket.unpack_sockaddr_in(sockaddr) #=> [80, "127.0.0.1"]

check_trust

check_trust(chain, digester, trust_dir) Instance Public methods Ensures the root of chain has a trusted certificate in trust_dir and the digests of the two certificates match according to digester

to_formatted_s

to_formatted_s(format = :default) Instance Public methods Converts to a formatted string. See DATE_FORMATS for builtin formats. This method is aliased to to_s. time = Time.now # => Thu Jan 18 06:10:17 CST 2007 time.to_formatted_s(:time) # => "06:10" time.to_s(:time) # => "06:10" time.to_formatted_s(:db) # => "2007-01-18 06:10:17" time.to_formatted_s(:number) # => "20070118061017" time.to_formatted_s(:shor

remote_addr=

remote_addr=(addr) Instance Public methods

render_to_string

render_to_string(*) Instance Public methods Overwrite #render_to_string because body can now be set to a rack body.

exp!

exp!(z) Class Public methods Alias for: exp

image_gradient

image_gradient(photo, left, right, type) Class Public methods

validate

validate(record) Instance Public methods Override this method in subclasses with validation logic, adding errors to the records errors array where necessary.

bar_type

bar_type(id) Instance Public methods

to_eval

to_eval() Instance Public methods