Class: Svnx::Diff::Command

Inherits:
Base::Command show all
Defined in:
lib/svnx/diff/command.rb

Instance Attribute Summary collapse

Attributes inherited from Base::Command

#error, #output, #status

Instance Method Summary collapse

Methods inherited from Base::Command

caching, noncaching, #options_class, #read_options, #subcommand, #xml?

Constructor Details

#initialize(cmdopts, cmdlinecls: Svnx::Base::CommandLine) ⇒ Command

Returns a new instance of Command.



12
13
14
15
16
17
# File 'lib/svnx/diff/command.rb', line 12

def initialize cmdopts, cmdlinecls: Svnx::Base::CommandLine
  super cmdopts, cmdlinecls: cmdlinecls, caching: true
  if @output
    @entries = Svnx::Diff::Parser.new.parse_all_output @output.dup
  end
end

Instance Attribute Details

#entriesObject (readonly)

Returns the value of attribute entries.



10
11
12
# File 'lib/svnx/diff/command.rb', line 10

def entries
  @entries
end