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.

parse

parse(yaml, filename = nil) Class Public methods Parse a YAML string in yaml. Returns the first object of a YAML AST. filename is used in the exception message if a Psych::SyntaxError is raised. Raises a Psych::SyntaxError when a YAML syntax error is detected. Example: Psych.parse("---\n - a\n - b") # => #<Psych::Nodes::Sequence:0x00> begin Psych.parse("--- `", "file.txt") rescue Psych::SyntaxError => ex ex.file # => 'file.txt' ex.message # => "(file.tx

append

append(*args) Instance Public methods Appends switch at the tail of the list, and associates short, long and negated long options. Arguments are: switch OptionParser::Switch instance to be inserted. short_opts List of short style options. long_opts List of long style options. nolong_opts List of long style options with âno-â prefix. append(switch, short_opts, long_opts, nolong_opts)

grouped_collection_select

grouped_collection_select(method, collection, group_method, group_label_method, option_key_method, option_value_method, options = {}, html_options = {}) Instance Public methods Wraps ActionView::Helpers::FormOptionsHelper#grouped_collection_select for form builders: <%= form_for @city do |f| %> <%= f.grouped_collection_select :country_id, @continents, :countries, :name, :id, :name %> <%= f.submit %> <% end %> Please refer to the documentation of the base

copy

copy(destination, sources, options = {}) Instance Public methods

rfc2822 2

rfc2822() Instance Public methods Returns a string which represents the time as date-time defined by RFC 2822: day-of-week, DD month-name CCYY hh:mm:ss zone where zone is [+-]hhmm. If self is a UTC time, -0000 is used as zone. You must require 'time' to use this method. rfc822

detach

detach(*items) Instance Public methods

insert_sql

insert_sql(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil) Instance Protected methods Returns the last auto-generated ID from the affected table.

type_cast

type_cast(value) Instance Public methods

new

new(*) Class Public methods