lib/vedeu/dsl/components/keymap.rb in vedeu-0.3.5 vs lib/vedeu/dsl/components/keymap.rb in vedeu-0.4.0
- old
+ new
@@ -37,15 +37,13 @@
# keymap 'my_interface' do
# ...
#
# @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 keymap(name, &block)
- # fail InvalidSyntax, 'block not given' unless block_given?
-
- # @todo Try to remember why we need to pre-create the keymap in the
- # repository.
- Vedeu::Keymap.new(name).store
+ Vedeu::Keymap.new({ name: name }).store
Vedeu::Keymap.build({ name: name }, &block).store
end
end