Class: Svnx::Log::Options

Inherits:
Base::Options show all
Defined in:
lib/svnx/log/options.rb

Constant Summary collapse

FIELDS =
Hash.new.tap do |h|
  h[:limit]    = Proc.new { |x| [ "--limit", x.limit ] }
  h[:verbose]  = "-v"
  h[:revision] = Proc.new { |x| "-r" + x.revision.to_s }
  h[:url]      = nil
  h[:path]     = nil
end

Instance Method Summary collapse

Methods inherited from Base::Options

#get_args, has_fields, #initialize, #options_to_args, #to_args

Methods included from ObjectUtil

#assign, #create_invalid_fields_message, included, #validate

Methods included from ObjectUtil::ClassMethods

#attr_readers, #xhas_fields

Constructor Details

This class inherits a constructor from Svnx::Base::Options

Instance Method Details

#fieldsObject



23
24
25
# File 'lib/svnx/log/options.rb', line 23

def fields
  FIELDS
end