lib/markaby/kernel_method.rb in markaby-0.9.0 vs lib/markaby/kernel_method.rb in markaby-0.9.1
- old
+ new
@@ -1,9 +1,9 @@
# You'll need to <tt>require 'markaby/kernel_method'</tt> for this.
-require 'markaby'
+require "markaby"
module Kernel
# Shortcut for creating a quick block of Markaby.
- def mab(*args, &block)
- Markaby::Builder.new(*args, &block).to_s
+ def mab(...)
+ Markaby::Builder.new(...).to_s
end
end