Results for: "slice"

No documentation available
No documentation available

Ensure argument is ‘mod_sequence_value’ or raise DataFormatError

No documentation available
No documentation available

Returns true if the element contains inline content that has a text media type.

Returns true if the element contains inline content that has a XML media type.

Returns true if the element contains inline content encoded in base64.

Returns true if the element contains linked content.

No documentation available
No documentation available
No documentation available
No documentation available

Processes the topmost available {RequirementState} on the stack @return [void]

No documentation available
No documentation available

In case we’re building docs in a background process, this method waits for that process to exit (or if it’s already been reaped, or never happened, swallows the Errno::ECHILD error).

No documentation available

Returns an array of two elements: the filename where the calling method is located, and the line number where it is defined.

Takes an optional argument i, which specifies how many callers up the stack to look.

Examples:

require 'rss/utils'

def foo
  p RSS::Utils.get_file_and_line_from_caller
  p RSS::Utils.get_file_and_line_from_caller(1)
end

def bar
  foo
end

def baz
  bar
end

baz
# => ["test.rb", 5]
# => ["test.rb", 9]

If i is not given, or is the default value of 0, it attempts to figure out the correct value. This is useful when in combination with instance_eval. For example:

require 'rss/utils'

def foo
  p RSS::Utils.get_file_and_line_from_caller(1)
end

def bar
  foo
end

instance_eval <<-RUBY, *RSS::Utils.get_file_and_line_from_caller
def baz
  bar
end
RUBY

baz

# => ["test.rb", 8]
No documentation available

Attempts to swp the current {#possibility} with the already-activated spec with the given name @return [Boolean] Whether the possibility was swapped into {#activated}

@return [String] the name of the source of ‘locked’ dependencies, i.e.

those passed to {Resolver#resolve} directly as the `base`

(see Gem::Resolver::Molinillo::SpecificationProvider#name_for_locking_dependency_source)

Ensures any raised {NoSuchDependencyError} has its {NoSuchDependencyError#required_by} set. @yield

Search took: 4ms  ·  Total Results: 1199