Class: Gel::Package::Inspector
- Inherits:
-
Object
- Object
- Gel::Package::Inspector
- Defined in:
- lib/gel/package/inspector.rb
Instance Attribute Summary collapse
-
#spec ⇒ Object
readonly
Returns the value of attribute spec.
Instance Method Summary collapse
- #file(filename, io, _mode) ⇒ Object
- #gem(spec) {|_self| ... } ⇒ Object
-
#initialize(&block) ⇒ Inspector
constructor
A new instance of Inspector.
Constructor Details
#initialize(&block) ⇒ Inspector
Returns a new instance of Inspector.
6 7 8 |
# File 'lib/gel/package/inspector.rb', line 6 def initialize(&block) @block = block end |
Instance Attribute Details
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
10 11 12 |
# File 'lib/gel/package/inspector.rb', line 10 def spec @spec end |
Instance Method Details
#file(filename, io, _mode) ⇒ Object
18 19 20 |
# File 'lib/gel/package/inspector.rb', line 18 def file(filename, io, _mode) @block.call filename, io end |
#gem(spec) {|_self| ... } ⇒ Object
12 13 14 15 16 |
# File 'lib/gel/package/inspector.rb', line 12 def gem(spec) @spec = spec yield self if @block end |