Module: Ruuuby::Attribute::Includable::SubscriptIndexing
- Defined in:
- lib/ruuuby/module/attribute/includable/subscript_indexing.rb
Overview
provide functionality to access element by index denoted by subscripts
Instance Method Summary collapse
-
#₀ ⇒ *
Element at index(0).
-
#₀?(compare_to) ⇒ Boolean
TODO: error check on index accessed (compared to length).
-
#₁ ⇒ *
Element at index(1).
-
#₁?(compare_to) ⇒ Boolean
TODO: error check on index accessed (compared to length).
-
#₂ ⇒ *
Element at index(2).
-
#₃ ⇒ *
Element at index(3).
Instance Method Details
#₀ ⇒ *
Returns element at index(0).
16 |
# File 'lib/ruuuby/module/attribute/includable/subscript_indexing.rb', line 16 def |
#₀?(compare_to) ⇒ Boolean
TODO: error check on index accessed (compared to length)
20 |
# File 'lib/ruuuby/module/attribute/includable/subscript_indexing.rb', line 20 def |
#₁ ⇒ *
Returns element at index(1).
23 |
# File 'lib/ruuuby/module/attribute/includable/subscript_indexing.rb', line 23 def |
#₁?(compare_to) ⇒ Boolean
TODO: error check on index accessed (compared to length)
27 |
# File 'lib/ruuuby/module/attribute/includable/subscript_indexing.rb', line 27 def |
#₂ ⇒ *
Returns element at index(2).
30 |
# File 'lib/ruuuby/module/attribute/includable/subscript_indexing.rb', line 30 def |
#₃ ⇒ *
Returns element at index(3).
33 |
# File 'lib/ruuuby/module/attribute/includable/subscript_indexing.rb', line 33 def |