Make Output.new
accepts keyword arguments
This commit is contained in:
parent
801e4a4feb
commit
05d681f91e
@ -4,10 +4,15 @@ require_relative 'colorize'
|
|||||||
class Output
|
class Output
|
||||||
attr_reader :path, :vpath
|
attr_reader :path, :vpath
|
||||||
|
|
||||||
def initialize
|
def initialize(path: nil, timestamp: nil, ifchange: nil, color: nil,
|
||||||
@path = @timestamp = @ifchange = @color = nil
|
overwrite: false, create_only: false, vpath: VPath.new)
|
||||||
@overwrite = @create_only = false
|
@path = path
|
||||||
@vpath = VPath.new
|
@timestamp = timestamp
|
||||||
|
@ifchange = ifchange
|
||||||
|
@color = color
|
||||||
|
@overwrite = overwrite
|
||||||
|
@create_only = create_only
|
||||||
|
@vpath = vpath
|
||||||
end
|
end
|
||||||
|
|
||||||
COLOR_WHEN = {
|
COLOR_WHEN = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user