Sha256: 73ef361b5e2332d73007352c4e0baa0f866be2f343be7a1903a18056b9f9e9f5

Contents?: true

Size: 408 Bytes

Versions: 74

Compression:

Stored size: 408 Bytes

Contents

module Redcar
  class Keymap
    class Builder
      attr_reader :keymap

      def initialize(name, platforms, &block)
        @keymap = Keymap.new(name, platforms)
        if block.arity == 1
          block.call(self)
        else
          instance_eval(&block)
        end
      end
      
      private
      
      def link(key, command)
        @keymap.link(key, command)
      end
    end
  end
end

Version data entries

74 entries across 74 versions & 2 rubygems

Version Path
redcar-0.13 plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.13.5dev plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.13.4dev plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.13.3dev plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.13.2dev plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.13.1dev plugins/application/lib/application/keymap/builder.rb
redcar-0.12.1 plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.13.0dev plugins/application/lib/application/keymap/builder.rb
redcar-0.12 plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.27dev plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.26dev plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.25dev plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.24dev plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.23dev plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.22dev plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.21dev plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.20dev plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.19dev plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.18dev plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.17dev plugins/application/lib/application/keymap/builder.rb