Method: Textbringer::Ring#current
- Defined in:
- lib/textbringer/ring.rb
#current ⇒ Object
36 37 38 39 40 41 |
# File 'lib/textbringer/ring.rb', line 36 def current if @ring.empty? raise EditorError, "Ring is empty" end @ring[@current] end |