Class: RDist::Setting
- Inherits:
-
Object
- Object
- RDist::Setting
- Extended by:
- Marcos
- Defined in:
- lib/rdist/setting.rb,
lib/rdist/setting/macros.rb
Defined Under Namespace
Modules: Marcos
Instance Attribute Summary collapse
-
#analyzer ⇒ Object
readonly
Returns the value of attribute analyzer.
-
#banner ⇒ Object
readonly
Returns the value of attribute banner.
-
#num_ranking ⇒ Object
readonly
Returns the value of attribute num_ranking.
Class Method Summary collapse
-
.for_argv(argv) ⇒ Object
Creates a new setting from
argv.
Instance Method Summary collapse
-
#initialize(argv) ⇒ Setting
constructor
:nodoc:.
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() () init_analyzer() end |
Instance Attribute Details
#analyzer ⇒ Object (readonly)
Returns the value of attribute analyzer.
26 27 28 |
# File 'lib/rdist/setting.rb', line 26 def analyzer @analyzer end |
#banner ⇒ Object (readonly)
Returns the value of attribute banner.
27 28 29 |
# File 'lib/rdist/setting.rb', line 27 def @banner end |
#num_ranking ⇒ Object (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 |