enable_starttls

enable_starttls(context = SMTP.default_ssl_context) Instance Public methods Enables SMTP/TLS (STARTTLS) for this object. context is a OpenSSL::SSL::SSLContext object.

href

href(x, y) Instance Public methods

shelljoin

array.shelljoin => string Instance Public methods Builds a command line string from an argument list array joining all elements escaped for Bourne shell and separated by a space. See Shellwords.shelljoin for details.

tagid

tagid(id) Instance Public methods

output

output(out, output_width) Instance Public methods

attribute_method_prefix

attribute_method_prefix(*prefixes) Instance Public methods Declares a method available for all attributes with the given prefix. Uses method_missing and respond_to? to rewrite the method. #{prefix}#{attr}(*args, &block) to #{prefix}attribute(#{attr}, *args, &block) An instance method #{prefix}attribute must exist and accept at least the attr argument. class Person include ActiveModel::AttributeMethods attr_accessor :name attribute_method_prefix 'clear_' define_at

parse_stream

parse_stream(yaml, filename = nil, &block) Class Public methods Parse a YAML string in yaml. Returns the full AST for the YAML document. This method can handle multiple YAML documents contained in yaml. filename is used in the exception message if a Psych::SyntaxError is raised. If a block is given, a Psych::Nodes::Document node will be yielded to the block as it's being parsed. Raises a Psych::SyntaxError when a YAML syntax error is detected. Example: Psych.parse_stream("---\

file_dir

file_dir() Instance Public methods The directory files are written to

distinct

distinct() Instance Public methods Specifies whether the records should be unique or not. class Person < ActiveRecord::Base has_many :pets end person.pets.select(:name) # => [ # #<Pet name: "Fancy-Fancy">, # #<Pet name: "Fancy-Fancy"> # ] person.pets.select(:name).distinct # => [#<Pet name: "Fancy-Fancy">] uniq

set_service_hook

set_service_hook(&handler) Instance Public methods A service-hook is called for each service request (RPC). You can use a service-hook for example to wrap existing methods and catch exceptions of them or convert values to values recognized by XMLRPC. You can disable it by passing nil as the handler parameter. The service-hook is called with a Proc object along with any parameters. An example: server.set_service_hook {|obj, *args| begin ret = obj.call(*args) # call the or