Create a gist now

Instantly share code, notes, and snippets.

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