Method: Graphiti::Stats::DSL#method_missing
- Defined in:
- lib/graphiti/stats/dsl.rb
#method_missing(meth, *args, &blk) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Used for defining arbitrary stats within the DSL:
allow_stat :total do
standard_deviation { |scope, attr| ... }
end
…will hit method_missing and store the proc for future reference.
49 50 51 |
# File 'lib/graphiti/stats/dsl.rb', line 49 def method_missing(meth, *args, &blk) @calculations[meth] = blk end |