Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
require 'celluloid'
class FilePutter
include Celluloid
def initialize(filename)
@filename = filename
end
def load_file
@file_contents = File.read @filename
end
def print
p @file_contents
end
end
files = ["/home/cti/edivansoares/celluloid/kernel.log", "/home/cti/edivansoares/celluloid/system.log", "/home/cti/edivansoares/celluloid/ppp.log", "/home/cti/edivansoares/celluloid/secure.log"]
files.each do |file|
fp = FilePutter.new file
fp.load_file_and_print!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.