Module: VER::Methods::Move
- Defined in:
- lib/ver/methods/move.rb
Class Method Summary collapse
-
.percent(buffer, count = buffer.prefix_count(nil)) ⇒ Object
This method forwards to go_percent or go_match, depending on whether an argument was given.
- .prefix_arg_sol(buffer) ⇒ Object
Class Method Details
.percent(buffer, count = buffer.prefix_count(nil)) ⇒ Object
This method forwards to go_percent or go_match, depending on whether an argument was given.
77 78 79 80 81 82 83 |
# File 'lib/ver/methods/move.rb', line 77 def percent(buffer, count = buffer.prefix_count(nil)) if count buffer.at_insert.go_percent(count) else buffer.at_insert.matching_brace end end |
.prefix_arg_sol(buffer) ⇒ Object
70 71 72 73 |
# File 'lib/ver/methods/move.rb', line 70 def prefix_arg_sol(buffer) return if buffer.update_prefix_arg buffer.start_of_line end |