Skip to content

@Poincare /gist:3155240
Created

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
fp = FilePutter.new "/var/log/kernel.log"
fp.load_file
fp.print
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.