lib/vedeu/dsl/components/keymap.rb in vedeu-0.4.13 vs lib/vedeu/dsl/components/keymap.rb in vedeu-0.4.14

- old
+ new

@@ -1,6 +1,5 @@ -require 'vedeu/exceptions' require 'vedeu/support/common' require 'vedeu/input/key' module Vedeu @@ -49,10 +48,10 @@ # @raise [InvalidSyntax] The required block was not given. # @return [Keymap] # @todo Try to remember why we need to pre-create the keymap in the # repository. def self.keymap(name, &block) - Vedeu::Keymap.new({ name: name }).store + Vedeu::Keymap.new(name: name).store Vedeu::Keymap.build({ name: name }, &block).store end # Returns an instance of DSL::Keymap.