Class: EmberCLI::Capture

Inherits:
Object
  • Object
show all
Defined in:
lib/ember-cli/capture.rb

Instance Method Summary collapse

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

#captureObject



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