_invoke_without_enc

_invoke_without_enc(*cmds) Instance Public methods Alias for: _invoke

configure

configure(*args) Class Public methods def configure(win, *args) if args[-1].kind_of?(Hash) opts = args.pop else opts = {} end params = [] params.push(_epath(win)) args.each{|win| case win when '-', 'x', '^' # RELATIVE PLACEMENT params.push(win) else params.push(_epath(win)) end } opts.each{|k, v| params.push("-#{k}") params.push((v.kind_of?(TkObject))? v.epath: v) } if Tk::TCL_MAJOR_VERSION < 8 || (Tk::TCL_MAJOR_VERSION == 8 && Tk::TCL_MINOR_

encoding_convertfrom

encoding_convertfrom(str, enc=None) Class Public methods Also aliased as: encoding_convert_from

[]

prc[params,...] â obj Instance Public methods Invokes the block, setting the block's parameters to the values in params using something close to method calling semantics. Generates a warning if multiple values are passed to a proc that expects just one (previously this silently converted the parameters to an array). Note that prc.() invokes prc.call() with the parameters given. It's a syntax sugar to hide âcallâ. For procs created using lambda or ->() an error is genera

setselection

setselection(itempath) Instance Public methods

kanji_font

kanji_font() Instance Public methods Also aliased as: kanjifont

names

enc.names â array Instance Public methods Returns the list of name and aliases of the encoding. Encoding::WINDOWS_31J.names #=> ["Windows-31J", "CP932", "csWindows31J"]

have_content?

have_content?() Class Public methods

attachments

attachments() Instance Public methods Allows you to add attachments to an email, like so: mail.attachments['filename.jpg'] = File.read('/path/to/filename.jpg') If you do this, then Mail will take the file name and work out the mime type set the Content-Type, Content-Disposition, Content-Transfer-Encoding and base64 encode the contents of the attachment all for you. You can also specify overrides if you want by passing a hash instead of a string: mail.attachments['filename.jpg'] =

public_key

public_key() Instance Public methods