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