Class: CssRewrite::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/css-rewrite/config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#rewritersObject (readonly)

Returns the value of attribute rewriters.



11
12
13
# File 'lib/css-rewrite/config.rb', line 11

def rewriters
  @rewriters
end

Class Method Details

.instanceObject



3
4
5
# File 'lib/css-rewrite/config.rb', line 3

def self.instance
  @instance ||= new
end

.resetObject



7
8
9
# File 'lib/css-rewrite/config.rb', line 7

def self.reset
  @instance = nil
end

Instance Method Details

#rewrite(file_filter, &block) ⇒ Object



13
14
15
# File 'lib/css-rewrite/config.rb', line 13

def rewrite(file_filter, &block)
  rewriters << Rewriter.new(file_filter, &block)
end