new

new(version = [], tag_directives = [], implicit = false) Class Public methods Create a new Psych::Nodes::Document object. version is a list indicating the YAML version. tags_directives is a list of tag directive declarations implicit is a flag indicating whether the document will be implicitly started. Example: This creates a YAML document object that represents a YAML 1.1 document with one tag directive, and has an implicit start: Psych::Nodes::Document.new( [1,1], [["!", "tag

open

File.open(filename, mode="r" [, opt]) â fileFile.open(filename [, mode [, perm]] [, opt]) â fileFile.open(filename, mode="r" [, opt]) {|file| block } â objFile.open(filename [, mode [, perm]] [, opt]) {|file| block } â obj Class Public methods With no associated block, File.open is a synonym for ::new. If the optional code block is given, it will be passed the opened file as an argument and the File object will automatically be closed when the block termina

to_a

ENV.to_a â Array Class Public methods Converts the environment variables into an array of names and value arrays. ENV.to_a # => [["TERM", "xterm-color"], ["SHELL", "/bin/bash"], ...]

class

class() Instance Public methods Fake class method for Win32::Registry#open, Win32::Registry#create

store

store(key, val) Instance Public methods

time_zone_select

time_zone_select(object, method, priority_zones = nil, options = {}, html_options = {}) Instance Public methods Returns select and option tags for the given object and method, using time_zone_options_for_select to generate the list of option tags. In addition to the :include_blank option documented above, this method also supports a :model option, which defaults to ActiveSupport::TimeZone. This may be used by users to specify a different time zone model object. (See time_zone_optio

latin_current_configinfo

latin_current_configinfo(slot=nil) Instance Public methods

index

index(index) Instance Public methods

floor_fg1

floor_fg1(w,color) Instance Public methods #floor_fg1 â This method represents part of the floorplan database. When invoked, it instantiates the foreground information for the first floor (office outlines and numbers). Arguments: w - The canvas window. color - Color to use for drawing foreground information.

in_groups_of

in_groups_of(number, fill_with = nil) Instance Public methods Splits or iterates over the array in groups of size number, padding any remaining slots with fill_with unless it is false. %w(1 2 3 4 5 6 7 8 9 10).in_groups_of(3) {|group| p group} ["1", "2", "3"] ["4", "5", "6"] ["7", "8", "9"] ["10", nil, nil] %w(1 2 3 4 5).in_groups_of(2, ' ') {|group| p group} ["1", "2"] ["3", "4"] ["5", " "] %w(1 2 3 4 5).in_groups_of(2, false) {|group| p group} ["1", "2"] ["3",