Module: Postage::About

Defined in:
lib/postage/about.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.infoObject



8
9
10
# File 'lib/postage/about.rb', line 8

def info
  @about ||= OpenStruct.new(YAML.load_file(ROOT.join("INFO")))
end

.to_sObject



12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/postage/about.rb', line 12

def to_s
  "  \#{Version}\n  Copyright (C) \#{Version.info.timestamp.year} \#{info.authors.join(', ')}\n\n  \#{info.description}\n \n  For more information, please see the project homepage\n  \#{info.homepage}. Bugs, enhancements and improvements,\n  please send message to \#{info.email}.\n  end_info\nend\n".gsub(/      /,'')