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.

new

new(address) Class Public methods Creates a new AAAA for address.

rename

rename(column_name, new_column_name) Instance Public methods Renames a column. t.rename(:description, :name)

event?

WIN32OLE_METHOD#event? Instance Public methods Returns true if the method is event. tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbook') method = WIN32OLE_METHOD.new(tobj, 'SheetActivate') puts method.event? # => true

uri_escaper

uri_escaper() Instance Public methods

==

==( other ) Instance Public methods

excerpt

excerpt(text, phrase, options = {}) Instance Public methods Extracts an excerpt from text that matches the first instance of phrase. The :radius option expands the excerpt on each side of the first occurrence of phrase by the number of characters defined in :radius (which defaults to 100). If the excerpt radius overflows the beginning or end of the text, then the :omission option (which defaults to ââ¦â) will be prepended/appended accordingly. Use the :separator option to choose th

reset_cycle

reset_cycle(name = "default") Instance Public methods Resets a cycle so that it starts from the first element the next time it is called. Pass in name to reset a named cycle. # Alternate CSS classes for even and odd numbers... @items = [[1,2,3,4], [5,6,3], [3,4,5,6,7,4]] <table> <% @items.each do |item| %> <tr class="<%= cycle("even", "odd") -%>"> <% item.each do |value| %> <span style="color:<%= cycle("#333", "#666", "#999", name

cycle

enum.cycle(n=nil) { |obj| block } â nilenum.cycle(n=nil) â an_enumerator Instance Public methods Calls block for each element of enum repeatedly n times or forever if none or nil is given. If a non-positive number is given or the collection is empty, does nothing. Returns nil if the loop has finished without getting interrupted. #cycle saves elements in an internal array so changes to enum after the first pass have no effect. If no block is given, an enumerat

expected

expected() Instance Public methods