Method: Inch::Codebase::Objects#initialize
- Defined in:
- lib/inch/codebase/objects.rb
#initialize(language, objects) ⇒ Objects
Returns a new instance of Objects.
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/inch/codebase/objects.rb', line 17 def initialize(language, objects) list = objects.map do |code_object| Codebase::Object.new(language, code_object, self) end @list = list index_by_fullname # the @list has to be set for the priority sorting # since the priority needs the object_lookup, which # in turn depends on @list - it's a crazy world @list = self.class.sort_by_priority(@list) end |