insert

insert(pos,text) Instance Public methods

glob

Dir.glob( pattern, [flags] ) â arrayDir.glob( pattern, [flags] ) {| filename | block } â nil Class Public methods Returns the filenames found by expanding pattern which is an Array of the patterns or the pattern String, either as an array or as parameters to the block. Note that this pattern is not a regexp (it's closer to a shell glob). See File::fnmatch for the meaning of the flags parameter. Note that case sensitivity depends on your system (so File::FNM_CASEFOLD is ignored),

to_param

to_param() Instance Public methods Returns a String, which Action Pack uses for constructing an URL to this object. The default implementation returns this record's id as a String, or nil if this record's unsaved. For example, suppose that you have a User model, and that you have a resources :users route. Normally, user_path will construct a path with the user object's 'id' in it: user = User.find_by(name: 'Phusion') user_path(user) # => "/users/1" You can override to_param in

not_set_name

not_set_name() Class Public methods

<<

<<(*records) Instance Public methods Adds one or more records to the collection by setting their foreign keys to the association's primary key. Returns self, so several appends may be chained together. class Person < ActiveRecord::Base has_many :pets end person.pets.size # => 0 person.pets << Pet.new(name: 'Fancy-Fancy') person.pets << [Pet.new(name: 'Spook'), Pet.new(name: 'Choo-Choo')] person.pets.size # => 3 person.id # => 1 person.pets # =>

write

strio.write(string) â integerstrio.syswrite(string) â integer Instance Public methods Appends the given string to the underlying buffer string of strio. The stream must be opened for writing. If the argument is not a string, it will be converted to a string using to_s. Returns the number of bytes written. See IO#write.

format

format(format = nil, *args) Instance Public methods Returns the contents of this Tms object as a formatted string, according to a format string like that passed to Kernel#format. In addition, format accepts the following extensions: %u Replaced by the user CPU time, as reported by #utime. %y Replaced by the system CPU time, as reported by stime (Mnemonic: y of âs*y*stemâ) %U Replaced by the children's user CPU time, as reported by #cutime %Y Replaced by the children'

new

new(server, *options) Class Public methods Initializes a new servlet for server using options which are stored as-is in +@options+. +@logger+ is also provided.

put

put(localfile, remotefile = File.basename(localfile), blocksize = DEFAULT_BLOCKSIZE, &block) Instance Public methods Transfers localfile to the server in whatever mode the session is set (text or binary). See puttextfile and putbinaryfile.

source_configure

source_configure(win, slot, value=None) Class Public methods