Results for: "Array"

No documentation available
No documentation available

Find and fetch gem name tuples that match dependency.

If matching_platform is false, gems for all platforms are returned.

Extra files to add to RDoc such as README or doc/examples.txt

When the user elects to generate the RDoc documentation for a gem (typically at install time), all the library files are sent to RDoc for processing. This option allows you to have some non-code files included for a more complete set of documentation.

Usage:

spec.extra_rdoc_files = ['README', 'doc/user-guide.txt']

Sets extra_rdoc_files to files, ensuring it is an array.

Join lines with a trailing slash

source = <<~'EOM'
  it "code can be split" \
     "across multiple lines" do
EOM

lines = CleanDocument.new(source: source).join_consecutive!.lines
expect(lines[0].to_s).to eq(source)
expect(lines[1].to_s).to eq("")
No documentation available
No documentation available
No documentation available

Invoked by Ruby’s core methods to run a blocking operation in a non-blocking way.

Minimal suggested implementation is:

def blocking_operation_wait(work)
  Thread.new(&work).join
end

Parses a C struct’s members

Example:

require 'fiddle/import'

include Fiddle::CParser
  #=> Object

parse_struct_signature(['int i', 'char c'])
  #=> [[Fiddle::TYPE_INT, Fiddle::TYPE_CHAR], ["i", "c"]]

parse_struct_signature(['char buffer[80]'])
  #=> [[[Fiddle::TYPE_CHAR, 80]], ["buffer"]]
No documentation available

Reads bytes from filename and adds them to the PRNG.

Writes a number of random generated bytes (currently 1024) to filename which can be used to initialize the PRNG by calling ::load_random_file in a later session.

Yields to a block and preserves the previous set of objects being printed.

Create a new BlockArgumentNode node.

Create a new CallTargetNode node.

Create a new ConstantTargetNode node.

Create a new EmbeddedVariableNode node.

Create a new ForwardingSuperNode node.

Create a new IndexTargetNode node.

Create a new MultiTargetNode node.

Create a new PinnedVariableNode node.

Create a new RegularExpressionNode node.

Create a new ShareableConstantNode node.

Search took: 5ms  ·  Total Results: 2478