Sha256: 0427dbcd417b13ab19d24bc4f7ec23c4ec74e7551b13e1ff9e8b2e77f7f546b8

Contents?: true

Size: 267 Bytes

Versions: 2

Compression:

Stored size: 267 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.read(File.join(texts_path, "#{file_name.to_s}.txt"))
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
daigaku-0.0.2 lib/daigaku/terminal.rb
daigaku-0.0.1 lib/daigaku/terminal.rb