Module: SVG::ArrayMixin
Overview
#
ArrayMixin Module
Instance Method Summary collapse
- #<<(other) ⇒ Object
- #[](index) ⇒ Object
- #[]=(index, value) ⇒ Object
- #clear ⇒ Object
- #each(&block) ⇒ Object
- #first ⇒ Object
- #last ⇒ Object
Instance Method Details
#<<(other) ⇒ Object
57 58 59 |
# File 'lib/ruby-svg/misc.rb', line 57 def <<(other) array << other end |
#[](index) ⇒ Object
49 50 51 |
# File 'lib/ruby-svg/misc.rb', line 49 def [](index) array[index] end |
#[]=(index, value) ⇒ Object
53 54 55 |
# File 'lib/ruby-svg/misc.rb', line 53 def []=(index, value) array[index] = value end |
#clear ⇒ Object
61 62 63 |
# File 'lib/ruby-svg/misc.rb', line 61 def clear array.clear end |
#each(&block) ⇒ Object
73 74 75 |
# File 'lib/ruby-svg/misc.rb', line 73 def each(&block) array.each(&block) end |
#first ⇒ Object
65 66 67 |
# File 'lib/ruby-svg/misc.rb', line 65 def first array.first end |
#last ⇒ Object
69 70 71 |
# File 'lib/ruby-svg/misc.rb', line 69 def last array.last end |