Class: Symbol

Inherits:
Object
  • Object
show all
Includes:
Apache::Apachify
Defined in:
lib/apache/apachify.rb

Overview

Ruby symbols

Instance Method Summary collapse

Methods included from Apache::Apachify

#apachify

Instance Method Details

#blockifyObject



67
68
69
# File 'lib/apache/apachify.rb', line 67

def blockify
  self.to_s
end

#headerizeObject



71
72
73
# File 'lib/apache/apachify.rb', line 71

def headerize
  "#{self.quoteize}"
end

#optionifyObject

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

#quoteizeObject



63
64
65
# File 'lib/apache/apachify.rb', line 63

def quoteize
  self.to_s.gsub('_', ' ')
end