Class: Svnx::Base::EntriesCommand
- Defined in:
- lib/svnx/base/command.rb
Direct Known Subclasses
Svnx::Blame::Command, Info::Command, Log::Command, Propget::Command, Status::Command
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
Attributes inherited from Command
#error, #options, #output, #status
Instance Method Summary collapse
-
#initialize(options, cls: Command::Cacheable::Command, exec: nil, caching: caching?, , xml: true, entries_class: nil) ⇒ EntriesCommand
constructor
A new instance of EntriesCommand.
Methods inherited from Command
Constructor Details
#initialize(options, cls: Command::Cacheable::Command, exec: nil, caching: caching?, , xml: true, entries_class: nil) ⇒ EntriesCommand
Returns a new instance of EntriesCommand.
63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/svnx/base/command.rb', line 63 def initialize , cls: Command::Cacheable::Command, exec: nil, caching: caching?, xml: true, entries_class: nil super , cls: cls, exec: exec, xml: xml, caching: caching if not @output.empty? entries_class ||= begin modl = ClassUtil.find_module self.class modl::Entries end @entries = entries_class.new lines: @output end end |
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
61 62 63 |
# File 'lib/svnx/base/command.rb', line 61 def entries @entries end |