Returns the major part of File_Stat#rdev
or nil
.
File.stat("/dev/fd1").rdev_major #=> 2 File.stat("/dev/tty").rdev_major #=> 5
Iterates over keys and objects in a weakly referenced object
Iterates over keys and objects in a weakly referenced object
Iterates over keys and objects in a weakly referenced object
Returns the absolute path of this instruction sequence.
nil
if the iseq was evaluated from a string.
For example, using ::compile_file
:
# /tmp/method.rb def hello puts "hello, world" end # in irb > iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb') > iseq.absolute_path #=> /tmp/method.rb
Paths in the gem to add to $LOAD_PATH
when this gem is activated. If you have an extension you do not need to add "ext"
to the require path, the extension build process will copy the extension files into “lib” for you.
The default value is "lib"
Usage:
# If all library files are in the root directory... spec.require_paths = ['.']
Return the list of all array-oriented instance variables.
Return the list of all instance variables.
Return the latest specs, optionally including prerelease specs if prerelease
is true.
Is name
a required attribute?
Required specification attributes
Activate all unambiguously resolved runtime dependencies of this spec. Add any ambiguous dependencies to the unresolved list to be resolved later, as needed.
Returns the full path to the cache directory containing this spec’s cached gem.
Returns the full path to the cached gem for this spec.
Creates a duplicate spec without large blobs that aren’t used at runtime.
Sets the rubygems_version
to the current RubyGems version.
Singular accessor for require_paths
Singular accessor for require_paths
True if this gem has the same attributes as other
.
Checks if this specification meets the requirement of dependency
.
Checks that dependencies use requirements as we recommend. Warnings are issued when dependencies are open-ended or overly strict for semantic versioning.
Checks to see if the files to be packaged are world-readable.
Is this dependency simply asking for the latest version of a gem?