lib/glimmer/css/css_minifier.rb in glimmer-dsl-css-1.4.1 vs lib/glimmer/css/css_minifier.rb in glimmer-dsl-css-1.5.0

- old
+ new

@@ -17,12 +17,17 @@ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +require 'singleton' + module Glimmer module CSS + # A very rudimentary CSS minifier. It does not minify CSS completely at the moment. class CSSMinifier + include Singleton + def convert(css) css.lines.map(&:chomp).map(&:strip).join end end end