Class: Toys::SourceSpec::Gem
Overview
A spec for a source located in a gem.
Beware that within the Toys::SourceSpec namespace, the name Gem
resolves to this class rather than to Ruby's ::Gem. Prefix references
to the latter with ::, as the project's style rules already require.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The gem name.
-
#path ⇒ String?
readonly
The path from the gem's toys directory, or
nilfor the entire toys directory. -
#toys_dir ⇒ String?
readonly
The name of the gem's toys directory, or
nilto use the default. -
#version ⇒ Array<String>
readonly
The version requirements.
Attributes inherited from Base
#context_directory, #source_name
Method Summary
Methods inherited from Base
Instance Attribute Details
#name ⇒ String (readonly)
The gem name.
401 402 403 |
# File 'lib/toys/source_spec.rb', line 401 def name @name end |
#path ⇒ String? (readonly)
The path from the gem's toys directory, or nil for the entire toys
directory.
417 418 419 |
# File 'lib/toys/source_spec.rb', line 417 def path @path end |
#toys_dir ⇒ String? (readonly)
The name of the gem's toys directory, or nil to use the default.
424 425 426 |
# File 'lib/toys/source_spec.rb', line 424 def toys_dir @toys_dir end |
#version ⇒ Array<String> (readonly)
The version requirements. Always an array, which is empty if any version is allowed.
409 410 411 |
# File 'lib/toys/source_spec.rb', line 409 def version @version end |