Skip to content

Instantly share code, notes, and snippets.

@evolve2k
Created January 11, 2010 05:31
Show Gist options
  • Save evolve2k/274010 to your computer and use it in GitHub Desktop.
Save evolve2k/274010 to your computer and use it in GitHub Desktop.
def get_file
@instruction_file = gets.chomp
initialize_file
end
def initialize_file
@instruction_file = "instructions/input1.txt" if @instruction_file.nil? || @instruction_file.empty?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment