gems.rainbow-2.0.0.lib.rainbow.wrapper.rb Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sass-maven-plugin Show documentation
Show all versions of sass-maven-plugin Show documentation
A Maven Plugin that compiles Sass files.
require 'rainbow/presenter'
require 'rainbow/null_presenter'
module Rainbow
class Wrapper
attr_accessor :enabled
def initialize(enabled = true)
@enabled = enabled
end
def wrap(string)
if enabled
Rainbow::Presenter.new(string.to_s)
else
Rainbow::NullPresenter.new(string.to_s)
end
end
end
end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy