Module: Kernel
- Defined in:
- lib/ruport/data/grouping.rb
Instance Method Summary collapse
-
#Group(name, opts = {}) ⇒ Object
Shortcut interface for creating Data::Group.
-
#Grouping(*args) ⇒ Object
Shortcut interface for creating Data::Grouping.
Instance Method Details
#Group(name, opts = {}) ⇒ Object
Shortcut interface for creating Data::Group
Example:
g = Group('mygroup', :data => [[1,2,3],[4,5,6]],
:column_names => %w[a b c]) #=> creates a new group named mygroup
396 397 398 |
# File 'lib/ruport/data/grouping.rb', line 396 def Group(name,opts={}) Ruport::Data::Group.new(opts.merge(:name => name)) end |