module Babeltrace2::GetMethod

Private Instance Methods

get_method(name, arity) click to toggle source
# File lib/babeltrace2/plugin/plugin-dev.rb, line 161
def get_method(name, arity)
  return nil unless self.class.method_defined?(name)
  method = self.method(name)
  raise "'#{name}' method must take #{arity} argument#{arity > 1 ? "s" : ""}" unless method.arity == arity
  method
end