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-dev-0.12.16dev-java plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.15dev-java plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.14dev-java plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.13dev-java plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.12dev-java plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.11dev-java plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.10dev-java plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.9dev-java plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.8dev-java plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.7dev-java plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.6dev-java plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.4dev-java plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.3dev-java plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.1dev-java plugins/application/lib/application/keymap/builder.rb
redcar-dev-0.12.0dev-java plugins/application/lib/application/keymap/builder.rb
redcar-0.11 plugins/application/lib/application/keymap/builder.rb
redcar-0.11.0dev plugins/application/lib/application/keymap/builder.rb
redcar-0.10 plugins/application/lib/application/keymap/builder.rb
redcar-0.9.2 plugins/application/lib/application/keymap/builder.rb
redcar-0.9.1 plugins/application/lib/application/keymap/builder.rb