Class: GemfileSorter::Sources

Inherits:
BlockMap
  • Object
show all
Defined in:
lib/gemfile_sorter/sources.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(name, line:, line_number:) ⇒ Object



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

def block(name, line:, line_number:)
  Line::Source.new(name, line:, line_number:)
end