Class: GemfileSorter::Groups

Inherits:
BlockMap show all
Defined in:
lib/gemfile_sorter/groups.rb

Instance Attribute Summary

Attributes inherited from BlockMap

#blocks

Instance Method Summary collapse

Methods inherited from BlockMap

#add, #add_gem, #empty?, #extra_line_unless_empty, #initialize, #to_s

Constructor Details

This class inherits a constructor from GemfileSorter::BlockMap

Instance Method Details

#block(names, line:, line_number:) ⇒ Object



3
4
5
# File 'lib/gemfile_sorter/groups.rb', line 3

def block(names, line:, line_number:)
  Line::Group.new(names, line:, line_number:)
end