Sha256: 1a0a8c4f0820d4bcbb2caf28c0c5ec84f570781b5120464ea794454ade27b35f
Contents?: true
Size: 317 Bytes
Versions: 4
Compression:
Stored size: 317 Bytes
Contents
module Daigaku module Terminal # text should be of a width of 70 columns or less def self.text(file_name) texts_path = File.expand_path('../terminal/texts', __FILE__) file = File.join(texts_path, "#{file_name.to_s}.txt") (File.exist?(file) ? File.read(file).to_s : '') end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
daigaku-0.3.0 | lib/daigaku/terminal.rb |
daigaku-0.2.0 | lib/daigaku/terminal.rb |
daigaku-0.1.1 | lib/daigaku/terminal.rb |
daigaku-0.1.0 | lib/daigaku/terminal.rb |