Class: Smurf::Noop

Inherits:
Object
  • Object
show all
Defined in:
lib/smurf/noop.rb

Overview

This is a no-op; essentially a NullObject pattern implementation. Saves from implementing logic elsewhere

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ Noop

Returns a new instance of Noop.



5
# File 'lib/smurf/noop.rb', line 5

def initialize(content) @content = content; end

Class Method Details

.minifies?(paths) ⇒ Boolean

Returns:

  • (Boolean)


4
# File 'lib/smurf/noop.rb', line 4

def self.minifies?(paths) true; end

Instance Method Details

#minifiedObject



6
# File 'lib/smurf/noop.rb', line 6

def minified; @content; end