mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Manually merged from https://github.com/rubygems/rubygems/pull/2636
Enable Style/EmptyLinesAroundClassBody rubocop cop.
This commit is contained in:
parent
f56fc720ee
commit
31a6eaabc1
274 changed files with 672 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
# object to `Gem::Package.new`.
|
||||
|
||||
class Gem::Package::FileSource < Gem::Package::Source # :nodoc: all
|
||||
|
||||
attr_reader :path
|
||||
|
||||
def initialize(path)
|
||||
|
@ -28,4 +29,5 @@ class Gem::Package::FileSource < Gem::Package::Source # :nodoc: all
|
|||
def with_read_io(&block)
|
||||
File.open path, 'rb', &block
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue