squish

squish() Instance Public methods Returns the string, first removing all whitespace on both ends of the string, and then changing remaining consecutive whitespace groups into one space each. Note that it handles both ASCII and Unicode whitespace. %{ Multi-line string }.squish # => "Multi-line string" " foo bar \n \t boo".squish # => "foo bar boo"

instance_variables

obj.instance_variables â array Instance Public methods Returns an array of instance variable names for the receiver. Note that simply defining an accessor does not create the corresponding instance variable. class Fred attr_accessor :a1 def initialize @iv = 3 end end Fred.new.instance_variables #=> [:@iv]

codepoints

codepoints() Instance Public methods This is a deprecated alias for each_codepoint.

index

index( header )index( header, offset ) Instance Public methods This method will return the index of a field with the provided header. The offset can be used to locate duplicate header names, as described in #field.

add

add(value, digits) Instance Public methods + Add the specified value. e.g. c = a.add(b,n) c = a + b digits If specified and less than the number of significant digits of the result, the result is rounded to that number of digits, according to ::mode.

gem

gem(name, *reqs) Instance Public methods

supports_statement_cache?

supports_statement_cache?() Instance Public methods Returns true, since this connection adapter supports prepared statement caching.

match

rxp.match(str) â matchdata or nilrxp.match(str,pos) â matchdata or nil Instance Public methods Returns a MatchData object describing the match, or nil if there was no match. This is equivalent to retrieving the value of the special variable $~ following a normal match. If the second parameter is present, it specifies the position in the string to begin the search. /(.)(.)(.)/.match("abc")[2] #=> "b" /(.)(.)/.match("abc", 1)[2] #=> "c" If a block is given, invoke

supports_primary_key?

supports_primary_key?() Instance Public methods Can this adapter determine the primary key for tables not attached to an Active Record class, such as join tables? Backend specific, as the abstract adapter always returns false.

latin_font_id

latin_font_id() Instance Public methods