Module: Metrify::InstanceMethods

Defined in:
lib/metrify.rb,
lib/metrify.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



28
29
30
31
32
33
# File 'lib/metrify.rb', line 28

def method_missing(method, *args, &block)
  self.class.stat_names.each do |name|
    return stat_hash[name] if (name == method.to_s)
  end
  super
end