Class: CssPress::Css
- Inherits:
-
Object
- Object
- CssPress::Css
- Defined in:
- lib/css_press/css.rb
Constant Summary collapse
- DEFAULTS =
{ }
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Css
constructor
A new instance of Css.
- #press(css) ⇒ Object
Constructor Details
Instance Method Details
#press(css) ⇒ Object
13 14 15 16 17 |
# File 'lib/css_press/css.rb', line 13 def press (css) css_in = css.respond_to?(:read) ? css.read : css.dup doc = CSSPool.CSS css_in doc.min_css end |