module Daigaku::Terminal
Public Class Methods
text(file_name)
click to toggle source
text should be of a width of 70 columns or less
# File lib/daigaku/terminal.rb, line 4 def self.text(file_name) texts_path = File.expand_path('../terminal/texts', __FILE__) file = File.join(texts_path, "#{file_name}.txt") File.exist?(file) ? File.read(file).to_s : '' end