Results for: "Pathname"

Path of activations from the current list.

No documentation available

The name and version of the specification.

Unlike Gem::Specification#full_name, the platform is not included.

The name and version of the specification.

Unlike Gem::Specification#full_name, the platform is not included.

Returns the path to the trusted certificate

Returns the full file path of this frame.

Same as path, except that it will return absolute path even if the frame is in the main script.

Ruby expects the dylib to follow a file name convention for loading

Example:

x.foo
 ^^^^
x.foo(42)
 ^^^^
x&.foo
 ^^^^^
x[42]
 ^^^^
x += 1
  ^

Example:

x + 1
  ^
+x
^

Example:

foo(42)
^^^
foo 42
^^^

Get all gem names from the command line.

Get a single gem name from the command line. Fail if there is no gem name or if there is more than one gem name given.

No documentation available
No documentation available

Suggests gems based on the supplied gem_name. Returns an array of alternative gem names.

Returns every spec that matches name and optional requirements.

@return [Array] specs of default gems that are ‘==` to the given `spec`.

Corrects path (usually returned by ‘URI.parse().path` on Windows), that comes with a leading slash.

Defines a singleton method in the receiver. The method parameter can be a Proc, a Method or an UnboundMethod object. If a block is specified, it is used as the method body. If a block or a method has parameters, they’re used as method parameters.

class A
  class << self
    def class_name
      to_s
    end
  end
end
A.define_singleton_method(:who_am_i) do
  "I am: #{class_name}"
end
A.who_am_i   # ==> "I am: A"

guy = "Bob"
guy.define_singleton_method(:hello) { "#{self}: Hello there!" }
guy.hello    #=>  "Bob: Hello there!"

chris = "Chris"
chris.define_singleton_method(:greet) {|greeting| "#{greeting}, I'm Chris!" }
chris.greet("Hi") #=> "Hi, I'm Chris!"

Returns a list of the public instance methods defined in mod. If the optional parameter is false, the methods of any ancestors are not included.

Returns a list of the protected instance methods defined in mod. If the optional parameter is false, the methods of any ancestors are not included.

Similar to instance_method, searches public method only.

Returns true if the named public method is defined by mod. If inherit is set, the lookup will also search mod’s ancestors. String arguments are converted to symbols.

module A
  def method1()  end
end
class B
  protected
  def method2()  end
end
class C < B
  include A
  def method3()  end
end

A.method_defined? :method1                 #=> true
C.public_method_defined? "method1"         #=> true
C.public_method_defined? "method1", true   #=> true
C.public_method_defined? "method1", false  #=> true
C.public_method_defined? "method2"         #=> false
C.method_defined? "method2"                #=> true

Returns true if the named protected method is defined mod. If inherit is set, the lookup will also search mod’s ancestors. String arguments are converted to symbols.

module A
  def method1()  end
end
class B
  protected
  def method2()  end
end
class C < B
  include A
  def method3()  end
end

A.method_defined? :method1                    #=> true
C.protected_method_defined? "method1"         #=> false
C.protected_method_defined? "method2"         #=> true
C.protected_method_defined? "method2", true   #=> true
C.protected_method_defined? "method2", false  #=> false
C.method_defined? "method2"                   #=> true

Makes a list of existing class methods public.

String arguments are converted to symbols. An Array of Symbols and/or Strings is also accepted.

Search took: 4ms  ·  Total Results: 2192