Module: Headingify
- Defined in:
- lib/headingify.rb,
lib/headingify/info.rb
Constant Summary collapse
- TITLE =
"Ruby String.headingify Core Extension"
- VERSION =
"1.2.1"
- UPDATE =
"2014-12-29"
- REVISION =
"43"
- USAGE =
"headingify \"string\" | \"an \\%ESCAPED\\% string\""
- EXAMPLE_INPUT =
"\"garlic is as \\%GOOD\\% as ten mothers\""
- EXAMPLE_OUTPUT =
"Garlic Is as GOOD as Ten Mothers"
Class Method Summary collapse
Class Method Details
.example ⇒ Object
14 15 16 |
# File 'lib/headingify/info.rb', line 14 def self.example "input : #{EXAMPLE_INPUT}\nyield : #{EXAMPLE_OUTPUT}" end |
.help ⇒ Object
18 19 20 |
# File 'lib/headingify/info.rb', line 18 def self.help "#{Headingify.usage}\n\n#{Headingify.example}\n" end |
.usage ⇒ Object
10 11 12 |
# File 'lib/headingify/info.rb', line 10 def self.usage "usage: #{USAGE}" end |