Class: GitLab::CI::Lint::MultiIO

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/ci/lint/multio.rb

Instance Method Summary collapse

Constructor Details

#initialize(*targets) ⇒ MultiIO

Returns a new instance of MultiIO.



5
6
7
# File 'lib/gitlab/ci/lint/multio.rb', line 5

def initialize(*targets)
  @targets = targets
end

Instance Method Details

#closeObject



13
14
15
# File 'lib/gitlab/ci/lint/multio.rb', line 13

def close
  @targets.each(&:close)
end

#write(*args) ⇒ Object



9
10
11
# File 'lib/gitlab/ci/lint/multio.rb', line 9

def write(*args)
  @targets.each {|target| target.write(*args)}
end