Class: Smurf::Noop
- Inherits:
-
Object
- Object
- Smurf::Noop
- 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
-
#initialize(content) ⇒ Noop
constructor
A new instance of Noop.
- #minified ⇒ Object
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
4 |
# File 'lib/smurf/noop.rb', line 4 def self.minifies?(paths) true; end |
Instance Method Details
#minified ⇒ Object
6 |
# File 'lib/smurf/noop.rb', line 6 def minified; @content; end |