Sha256: b9a026aa7937342670f0cf5b1c9573af9cc147ef3cc8cca379a0f1f64b7115a2

Contents?: true

Size: 317 Bytes

Versions: 1

Compression:

Stored size: 317 Bytes

Contents

module Belajar
  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

1 entries across 1 versions & 1 rubygems

Version Path
belajar-0.1.1 lib/belajar/terminal.rb