class Pandocomatic::SkipCommand
A command to skip a file or directory
@!attribute src
@return [String] the file or directory to skip
@!attribute message
@return [String] message explaining why the file or directory is being skipped.
Attributes
message[R]
src[R]
Public Class Methods
new(src, message)
click to toggle source
Create a new SkipCommand
@param src [String] path to the file to skip @param message [String] the message explaining why this file is being
skipped
Calls superclass method
Pandocomatic::Command::new
# File lib/pandocomatic/command/skip_command.rb, line 39 def initialize(src, message) super() @src = src @message = message end
Public Instance Methods
message?()
click to toggle source
Has this SkipCommand
a message?
@return [Boolean]
# File lib/pandocomatic/command/skip_command.rb, line 48 def message? !((@message.nil? or @message.empty?)) end
run()
click to toggle source
‘Run’ this SkipCommand
by doing nothing
# File lib/pandocomatic/command/skip_command.rb, line 53 def run; end
skip?()
click to toggle source
Skip this command
@return [Boolean] true
# File lib/pandocomatic/command/skip_command.rb, line 58 def skip? true end
to_s()
click to toggle source
A string representation of this SkipCommand
@return [String]
# File lib/pandocomatic/command/skip_command.rb, line 65 def to_s "skipping #{File.basename @src}" + (": #{@message}" if message?) end