reset!

reset!() Instance Public methods Resets the instance. This can be used to reset the state information in an existing session instance, so it can be used from a clean-slate condition. session.reset!

each

each(&block) Instance Public methods Iterate over each node in the tree. Yields each node to block depth first.

tr

str.tr(from_str, to_str) => new_str Instance Public methods Returns a copy of str with the characters in from_str replaced by the corresponding characters in to_str. If to_str is shorter than from_str, it is padded with its last character in order to maintain the correspondence. "hello".tr('el', 'ip') #=> "hippo" "hello".tr('aeiou', '*') #=> "h*ll*" "hello".tr('aeiou', 'AA*') #=> "hAll*" Both strings may use the c1-c2 notation to denote ranges of character

body

body() Instance Public methods Returns the request body.

each_codepoint

ios.each_codepoint {|c| block } â iosios.codepoints {|c| block } â iosios.each_codepoint â an_enumeratorios.codepoints â an_enumerator Instance Public methods Passes the Integer ordinal of each character in ios, passing the codepoint as an argument. The stream must be opened for reading or an IOError will be raised. If no block is given, an enumerator is returned instead.

endgrent

endgrent() Class Public methods Ends the process of scanning through the /etc/group file begun by ::getgrent, and closes the file.

install

install(src, dest, options = {}) Class Public methods Options: mode preserve noop verbose If src is not same as dest, copies it and changes the permission mode to mode. If dest is a directory, destination is dest/src. This method removes destination before copy. FileUtils.install 'ruby', '/usr/local/bin/ruby', :mode => 0755, :verbose => true FileUtils.install 'lib.rb', '/usr/local/lib/ruby/site_ruby', :verbose => true

parse_error

parse_error() Class Public methods Returns the class of the error that will be raised when there is an error in decoding JSON. Using this method means you won't directly depend on the ActiveSupport's JSON implementation, in case it changes in the future. begin obj = ActiveSupport::JSON.decode(some_string) rescue ActiveSupport::JSON.parse_error Rails.logger.warn("Attempted to decode invalid JSON: #{some_string}") end

bind_remove_all

bind_remove_all(context) Instance Public methods

gravity

gravity() Instance Public methods