concat

concat(str) Instance Public methods Appends str to the string being scanned. This method does not affect scan pointer. s = StringScanner.new("Fri Dec 12 1975 14:39") s.scan(/Fri /) s << " +1000 GMT" s.string # -> "Fri Dec 12 1975 14:39 +1000 GMT" s.scan(/Dec/) # -> "Dec"

write_nonblock

ios.write_nonblock(string) â integer Instance Public methods Writes the given string to ios using the write(2) system call after O_NONBLOCK is set for the underlying file descriptor. It returns the number of bytes written. #write_nonblock just calls the write(2) system call. It causes all errors the write(2) system call causes: Errno::EWOULDBLOCK, Errno::EINTR, etc. The result may also be smaller than string.length (partial write). The caller should care such errors and partial

create_database

create_database(name, options = {}) Instance Public methods Create a new PostgreSQL database. Options include :owner, :template, :encoding (defaults to utf8), :collation, :ctype, :tablespace, and :connection_limit (note that MySQL uses :charset while PostgreSQL uses :encoding). Example: create_database config[:database], config create_database 'foo_development', encoding: 'unicode'

see

see(node) Instance Public methods

xhr?

xhr?() Instance Public methods Alias for: xml_http_request?

root

root() Instance Public methods

new

new(message, original_exception = nil) Class Public methods

configure

configure(key, val=None) Instance Public methods def cget(key) case key.to_s when 'text', 'label', 'show', 'data', 'file' _fromUTF8(tk_call_without_enc(@t.path, 'tag', 'cget', @id, "-#{key}")) when 'font', 'kanjifont' #fnt = tk_tcl2ruby(tk_call(@t.path, 'tag', 'cget', @id, "-#{key}")) fnt = tk_tcl2ruby(_fromUTF8(tk_call_without_enc(@t.path, 'tag', 'cget', @id, '-font'))) unless fnt.kind_of?(TkFont) fnt = tagfontobj(@id,

all

all(*args, &block) Instance Public methods Alias for: any

parse_struct_signature

parse_struct_signature(signature, tymap=nil) Instance Public methods Parses a C struct's members Example: include Fiddle::CParser #=> Object parse_struct_signature(['int i', 'char c']) #=> [[Fiddle::TYPE_INT, Fiddle::TYPE_CHAR], ["i", "c"]]