Class: Furious::Job
- Inherits:
-
Object
- Object
- Furious::Job
- Defined in:
- lib/furious/job.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#spec ⇒ Object
readonly
Returns the value of attribute spec.
Instance Method Summary collapse
-
#initialize(file) ⇒ Job
constructor
A new instance of Job.
Constructor Details
#initialize(file) ⇒ Job
Returns a new instance of Job.
5 6 7 8 9 10 |
# File 'lib/furious/job.rb', line 5 def initialize(file) fail ArgumentError, 'No gemspec file given' if file.nil? @file = file @spec = Gem::Specification.load(file) end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
3 4 5 |
# File 'lib/furious/job.rb', line 3 def file @file end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
3 4 5 |
# File 'lib/furious/job.rb', line 3 def spec @spec end |