Module: Vedeu::Editor::Collection Private

Includes:
Repositories::Assemblage
Included in:
Line, Lines
Defined in:
lib/vedeu/editor/collection.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Used by Lines and Line to fetch an item from the respective collection.

Instance Method Summary collapse

Methods included from Repositories::Assemblage

#[], #any?, #each, #empty?, #eql?, #size

Instance Method Details

#by_index(index) ⇒ String

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Fetches an item from a collection.

Parameters:

  • index (Fixnum)

Returns:

  • (String)


20
21
22
# File 'lib/vedeu/editor/collection.rb', line 20

def by_index(index)
  Vedeu::Editor::Item.by_index(collection, index)
end