Class: Svnx::Merge::Options

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

Constant Summary collapse

FIELDS =
Hash.new.tap do |h|
  h[:commit] = Proc.new { |x| [ "-c",       x.commit ] }
  h[:range]  = Proc.new { |x| [ "-r",       x.range ]  }
  h[:accept] = Proc.new { |x| [ "--accept", x.accept ] }
  h[:from]   = nil
  h[:to]     = 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/merge/options.rb', line 23

def fields
  FIELDS
end