config

config(key, value=None) Instance Public methods

each_pair

each_pair() Instance Public methods Yields all attributes (as a symbol) along with the corresponding values or returns an enumerator if not block is given. Example: require 'ostruct' data = OpenStruct.new("country" => "Australia", :population => 20_000_000) data.each_pair.to_a # => [[:country, "Australia"], [:population, 20000000]]

to_xml

to_xml(options = {}) Instance Public methods Returns a string containing an XML representation of its receiver: { foo: 1, bar: 2 }.to_xml # => # <?xml version="1.0" encoding="UTF-8"?> # <hash> # <foo type="integer">1</foo> # <bar type="integer">2</bar> # </hash> To do so, the method loops over the pairs and builds nodes that depend on the values. Given a pair key, value: If value is a hash there's a recursive call with key as :root

behavior=

behavior=(behavior) Instance Public methods Sets the behavior to the specified value. Can be a single value, array, or an object that responds to call. Available behaviors: raise Raise ActiveSupport::DeprecationException. stderr Log all deprecation warnings to +$stderr+. log Log all deprecation warnings to Rails.logger. notify Use ActiveSupport::Notifications to notify deprecation.rails. silence Do nothing. Setting behaviors only affects deprecations that happ

receive

receive(event) Instance Public methods

read

pathname.read([length [, offset]]) â stringpathname.read([length [, offset]], open_args) â string Instance Public methods Returns all data from the file, or the first N bytes if specified. See IO.read.

removeChild

removeChild(arg0) Instance Public methods IXMLDOMNode removeChild remove a child node IXMLDOMNode arg0 --- childNode [IN]

winfo_rootx

winfo_rootx() Instance Public methods

createElement

createElement(arg0) Instance Public methods IXMLDOMElement createElement create an Element node BSTR arg0 --- tagName [IN]

world_readable?

File.world_readable?(file_name) â fixnum or nil Instance Public methods If file_name is readable by others, returns an integer representing the file permission bits of file_name. Returns nil otherwise. The meaning of the bits is platform dependent; on Unix systems, see stat(2). file_name can be an IO object. File.world_readable?("/etc/passwd") #=> 420 m = File.world_readable?("/etc/passwd") sprintf("%o", m) #=> "644"