Public instance methods
stat
(type)
To be used with the *counts methods. For example:
stat(:namespace_counts)
This prints out pairs of a namespaces and their counts in the tags table.
[show source]
# File lib/has_machine_tags/tag_console.rb, line 26 def stat(type) shortcuts = {:n=>:namespace_counts, :p=>:predicate_counts, :v=>:value_counts } send(shortcuts[type] || type).map {|e| [e.counter, e.count] } end