Class: EmberCLI::Capture
- Inherits:
-
Object
- Object
- EmberCLI::Capture
- Defined in:
- lib/ember-cli/capture.rb
Instance Method Summary collapse
- #capture ⇒ Object
-
#initialize(sprockets:, &block) ⇒ Capture
constructor
A new instance of Capture.
Constructor Details
#initialize(sprockets:, &block) ⇒ Capture
5 6 7 8 |
# File 'lib/ember-cli/capture.rb', line 5 def initialize(sprockets:, &block) @sprockets = sprockets @block = block end |
Instance Method Details
#capture ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/ember-cli/capture.rb', line 10 def capture if block.present? capture_content else SKIP_CAPTURE end end |