Class: RDist::Setting

Inherits:
Object
  • Object
show all
Extended by:
Marcos
Defined in:
lib/rdist/setting.rb,
lib/rdist/setting/macros.rb

Defined Under Namespace

Modules: Marcos

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Setting

:nodoc:



18
19
20
21
22
23
24
# File 'lib/rdist/setting.rb', line 18

def initialize(argv) #:nodoc:
  @argv = argv
  init_attributes()
  configure_option_parser()
  parse_options()
  init_analyzer()
end

Instance Attribute Details

#analyzerObject (readonly)

Returns the value of attribute analyzer.



26
27
28
# File 'lib/rdist/setting.rb', line 26

def analyzer
  @analyzer
end

Returns the value of attribute banner.



27
28
29
# File 'lib/rdist/setting.rb', line 27

def banner
  @banner
end

#num_rankingObject (readonly)

Returns the value of attribute num_ranking.



28
29
30
# File 'lib/rdist/setting.rb', line 28

def num_ranking
  @num_ranking
end

Class Method Details

.for_argv(argv) ⇒ Object

Creates a new setting from argv. argv is destructively parsed. Items for command line options are removed and pathes (directories/files) are remained.



14
15
16
# File 'lib/rdist/setting.rb', line 14

def self.for_argv(argv)
  new(argv)
end