Module: Vedeu::Editor::Collection Private
- Includes:
- Repositories::Assemblage
- Defined in:
- lib/vedeu/editor/collection.rb
Overview
Instance Method Summary collapse
-
#[](index) ⇒ void
included
from Repositories::Assemblage
private
Return an individual element or collection of elements (if the given index is a Range).
-
#any?(&block) ⇒ Boolean
included
from Repositories::Assemblage
private
Returns a boolean indicating whether the collection is not empty.
-
#by_index(index) ⇒ String
private
Fetches an item from a collection.
-
#each(&block) ⇒ Enumerator
included
from Repositories::Assemblage
private
Provides iteration over the collection.
-
#empty? ⇒ Boolean
included
from Repositories::Assemblage
private
Returns a boolean indicating whether the collection is empty.
-
#eql?(other) ⇒ Boolean
(also: #==)
included
from Repositories::Assemblage
private
An object is equal when its values are the same.
-
#size ⇒ Fixnum
included
from Repositories::Assemblage
private
Return the size of the collection.
Instance Method Details
#[](index) ⇒ void Originally defined in module Repositories::Assemblage
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.
This method returns an undefined value.
Return an individual element or collection of elements (if the given index is a Range).
#any?(&block) ⇒ Boolean Originally defined in module Repositories::Assemblage
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.
Returns a boolean indicating whether the collection is not empty.
#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.
20 21 22 |
# File 'lib/vedeu/editor/collection.rb', line 20 def by_index(index) Vedeu::Editor::Item.by_index(collection, index) end |
#each(&block) ⇒ Enumerator Originally defined in module Repositories::Assemblage
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.
Provides iteration over the collection.
#empty? ⇒ Boolean Originally defined in module Repositories::Assemblage
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.
Returns a boolean indicating whether the collection is empty.
#eql?(other) ⇒ Boolean Also known as: == Originally defined in module Repositories::Assemblage
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.
An object is equal when its values are the same.
#size ⇒ Fixnum Originally defined in module Repositories::Assemblage
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.
Return the size of the collection.