module Menuboy::DSL
Public Instance Methods
option(name, &block)
click to toggle source
# File lib/menuboy.rb, line 59 def option name, &block opt_count = @target.options.count key = (opt_count+1).to_s if key.size > 1 raise StandardError, "You can only define 9 options per menu" end opt = Option.new(key, name, block) @target.options.push opt end