Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Includes:
- Apache::Apachify
- Defined in:
- lib/apache/apachify.rb
Overview
Ruby symbols
Instance Method Summary collapse
- #blockify ⇒ Object
- #headerize ⇒ Object
-
#optionify ⇒ Object
Turn this into an option for IndexOptions.
- #quoteize ⇒ Object
Methods included from Apache::Apachify
Instance Method Details
#blockify ⇒ Object
67 68 69 |
# File 'lib/apache/apachify.rb', line 67 def blockify self.to_s end |
#headerize ⇒ Object
71 72 73 |
# File 'lib/apache/apachify.rb', line 71 def headerize "#{self.quoteize}" end |
#optionify ⇒ Object
Turn this into an option for IndexOptions
57 58 59 60 61 |
# File 'lib/apache/apachify.rb', line 57 def optionify output = self.apachify output = "-#{output[3..-1]}" if self.to_s[0..3] == 'not_' output end |
#quoteize ⇒ Object
63 64 65 |
# File 'lib/apache/apachify.rb', line 63 def quoteize self.to_s.gsub('_', ' ') end |