Class: Inch::CLI::Command::BaseList
- Defined in:
- lib/inch/cli/command/base_list.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#objects ⇒ Object
writeonly
Sets the attribute objects.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ BaseList
constructor
A new instance of BaseList.
-
#prepare_list(*args) ⇒ void
Prepares the list of objects and ranges, parsing arguments and running the source parser.
Methods inherited from Base
#description, #name, run, #usage
Methods included from TraceHelper
Constructor Details
#initialize ⇒ BaseList
Returns a new instance of BaseList.
7 8 9 10 |
# File 'lib/inch/cli/command/base_list.rb', line 7 def initialize super @ranges = Evaluation.new_score_ranges end |
Instance Attribute Details
#objects=(value) ⇒ Object
Sets the attribute objects
5 6 7 |
# File 'lib/inch/cli/command/base_list.rb', line 5 def objects=(value) @objects = value end |
Instance Method Details
#prepare_list(*args) ⇒ void
This method returns an undefined value.
Prepares the list of objects and ranges, parsing arguments and running the source parser.
17 18 19 20 21 22 23 |
# File 'lib/inch/cli/command/base_list.rb', line 17 def prepare_list(*args) @options.parse(args) @options.verify run_source_parser(@options.paths, @options.excluded) filter_objects assign_objects_to_ranges end |