Results for: "fnmatch"

Executes block for each key in the database, passing the corresponding value as a parameter.

Executes block for each key in the database, passing the key as a parameter.

Executes block for each key in the database, passing the key and the corresponding value as a parameter.

Deserializes JSON string by constructing new Struct object with values t serialized by to_json.

Yields all attributes (as symbols) along with the corresponding values or returns an enumerator if no block is given.

require "ostruct"
data = OpenStruct.new("country" => "Australia", :capital => "Canberra")
data.each_pair.to_a   # => [[:country, "Australia"], [:capital, "Canberra"]]

Provides marshalling support for use by the Marshal library.

Provides marshalling support for use by the Marshal library.

Deserializes JSON string by constructing new Range object with arguments a serialized by to_json.

Deserializes JSON string by constructing new Regexp object with source s (Regexp or String) and options o serialized by to_json

Import a JSON Marshalled object.

method used for JSON marshalling support.

Deserializes JSON string by converting the string value stored in the object to a Symbol

Returns true if this class can be used to create an instance from a serialised JSON string. The class has to implement a class method json_create that expects a hash as first parameter. The hash should include the required data.

No documentation available

Iterates over each component of the path.

Pathname.new("/usr/bin/ruby").each_filename {|filename| ... }
  # yields "usr", "bin", and "ruby".

Returns an Enumerator if no block was given.

enum = Pathname.new("/usr/bin/ruby").each_filename
  # ... do stuff ...
enum.each { |e| ... }
  # yields "usr", "bin", and "ruby".

Return the path as a String.

to_path is implemented so Pathname objects are usable with File.open, etc.

Iterates over each line in the file and yields a String object for each.

Creates a hard link at pathname.

See File.link.

Creates a symbolic link.

See File.symlink.

Returns the absolute path for the file.

See File.expand_path.

Iterates over the entries (files and subdirectories) in the directory, yielding a Pathname object for each entry.

Returns an Array of values corresponding to the given keys.

Iterates over each value in the database.

If no block is given, returns an Enumerator.

Iterates over each key in the database.

If no block is given, returns an Enumerator.

Iterates over each key-value pair in the database.

If no block is given, returns an Enumerator.

Returns true for IPv4 private address (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16). It returns false otherwise.

Search took: 3ms  ·  Total Results: 2227