Skip to content

Instantly share code, notes, and snippets.

@Poincare
Created July 21, 2012 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Poincare/3155240 to your computer and use it in GitHub Desktop.
Save Poincare/3155240 to your computer and use it in GitHub Desktop.
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