Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/gollum/frontend/app.rb,
lib/gollum/frontend/uri_encode_component.rb

Overview

define charCodeAt on String

Instance Method Summary collapse

Instance Method Details

#charCodeAt(k) ⇒ Object



41
42
43
# File 'lib/gollum/frontend/uri_encode_component.rb', line 41

def charCodeAt(k)
  return self[k].ord
end

#to_urlObject

_Header => header which causes errors



19
20
21
22
23
# File 'lib/gollum/frontend/app.rb', line 19

def to_url
  return nil if self.nil?
  return self if ['_Header', '_Footer', '_Sidebar'].include? self
  upstream_to_url
end

#upstream_to_urlObject



17
# File 'lib/gollum/frontend/app.rb', line 17

alias :upstream_to_url :to_url