class PeepShow::Exceptions::Base
Public Class Methods
phrase()
click to toggle source
# File lib/peep-show/exceptions/base.rb, line 8 def self.phrase self.phrases.sample end
phrases()
click to toggle source
# File lib/peep-show/exceptions/base.rb, line 2 def self.phrases mark_path = File.join(File.dirname(__FILE__), '..', 'inc', 'mark.txt') jez_path = File.join(File.dirname(__FILE__), '..', 'inc', 'jez.txt') File.readlines(mark_path).map(&:rstrip).concat File.readlines(jez_path) end