search_with_length

search_with_length(pat,start,stop=None) Instance Public methods

register_alias

register_alias(string, symbol, extension_synonyms = []) Class Public methods Registers an alias that's not used on mime type lookup, but can be referenced directly. Especially useful for rendering different HTML versions depending on the user agent, like an iPhone.

read_i

read_i(name) Instance Public methods Read a REG_SZ(read_s), REG_DWORD(read_i), or REG_BINARY(read_bin) registry value named name. If the values type does not match, TypeError is raised.

init_widget_font

init_widget_font(pathname, *args) Class Public methods

first

first(limit = nil) Instance Public methods Find the first record (or first N records if a parameter is supplied). If no order is defined it will order by primary key. Person.first # returns the first object fetched by SELECT * FROM people Person.where(["user_name = ?", user_name]).first Person.where(["user_name = :u", { u: user_name }]).first Person.order("created_on DESC").offset(5).first Person.first(3) # returns the first three objects fetched by SELECT * FROM people LIMIT 3 Ra

get_tk_until

get_tk_until(*tokens) Instance Public methods Reads and returns all tokens up to one of tokens. Leaves the matched token in the token list.

tr!

str.tr!(from_str, to_str) â str or nil Instance Public methods Translates str in place, using the same rules as String#tr. Returns str, or nil if no changes were made.

exist?

exist?(item) Instance Public methods

at_noon

at_noon() Instance Public methods Alias for: middle_of_day

item_style_set

item_style_set(item, column=nil, *args) Instance Public methods