Sha256: e7da2d0210ff1724a90f34c45034105085ef3c82bee2be5516c8df435d2d5af3
Contents?: true
Size: 757 Bytes
Versions: 44
Compression:
Stored size: 757 Bytes
Contents
module Redcar module Macros class ActionSequence attr_reader :actions attr_reader :skip_length def initialize(actions, skip_length) @actions = actions @skip_length = skip_length end def run_in(edit_view, this_skip_length=nil) this_skip_length ||= skip_length edit_view.document.compound do actions[this_skip_length..-1].each do |action| case action when Fixnum edit_view.type_character(action) when Symbol edit_view.invoke_action(action) when DocumentCommand action.run(:env => {:edit_view => edit_view}) end end end end end end end
Version data entries
44 entries across 44 versions & 2 rubygems