Module: GBud::Messages

Defined in:
lib/gbud/messages.rb

Overview

Messages

Author

Richard Davis

Copyright

Copyright 2017 Richard Davis

License

GNU Public License 3

Module containing methods used to prompt the user for program input.

Constant Summary collapse

VERSION =
'0.2.2'

Class Method Summary collapse

Class Method Details

.licenseObject

Returns the license message.



34
35
36
37
38
39
# File 'lib/gbud/messages.rb', line 34

def self.license
  "This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version."
end

.versionObject

Returns the version number.



52
53
54
# File 'lib/gbud/messages.rb', line 52

def self.version
  "gbud v#{VERSION}"
end

.warrantyObject

Returns the warranty message.



43
44
45
46
47
48
# File 'lib/gbud/messages.rb', line 43

def self.warranty
  "This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details."
end