Method: CaptainHoog::Git#method_missing

Defined in:
lib/captain_hoog/git.rb

#method_missing(meth_name, *args, &block) ⇒ Object



44
45
46
47
48
49
# File 'lib/captain_hoog/git.rb', line 44

def method_missing(meth_name, *args, &block)
  super unless @helper_table.helper_defined?(meth_name)
  helper = @helper_table[meth_name]
  fail ArgumentError unless helper[meth_name].arity == args.size
  helper[meth_name].call(*args)
end