Class: Milestoner::Builders::Site::Styler
- Inherits:
-
Object
- Object
- Milestoner::Builders::Site::Styler
- Defined in:
- lib/milestoner/builders/site/styler.rb
Overview
Builds web stylesheet.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(path_resolver: PathResolver) ⇒ Styler
constructor
A new instance of Styler.
Constructor Details
#initialize(path_resolver: PathResolver) ⇒ Styler
Returns a new instance of Styler.
16 17 18 19 |
# File 'lib/milestoner/builders/site/styler.rb', line 16 def initialize(path_resolver: PathResolver, **) super(**) @path_resolver = path_resolver end |
Instance Method Details
#call ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/milestoner/builders/site/styler.rb', line 21 def call return Success() unless settings.build_stylesheet path = build_path path_resolver.call(path, logger:) { copy path } end |