# File lib/adhearsion/voip/asterisk/menu_command/matchers.rb, line 129 def initialize(pattern,context_name, &block) raise ArgumentError, "Only supported Symbol pattern is :custom !" unless pattern == :custom raise LocalJumpError, "No block given!" unless block_given? context_name = context_name.to_s.chop.to_sym if context_name.to_s.ends_with?('?') super(pattern,context_name) @block = block end