Method: PrettyPrint::GroupQueue#initialize

Defined in:
lib/prettyprint.rb

#initialize(*groups) ⇒ GroupQueue

Create a GroupQueue object

Arguments:

  • groups - one or more PrettyPrint::Group objects



445
446
447
448
# File 'lib/prettyprint.rb', line 445

def initialize(*groups)
  @queue = []
  groups.each {|g| enq g}
end