Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/ext/string.rb
Instance Method Summary collapse
- #wiki_bold ⇒ Object
- #wiki_italic ⇒ Object
- #wiki_pre ⇒ Object
- #wiki_td(options = {}) ⇒ Object
- #wiki_th(options = {}) ⇒ Object
Instance Method Details
#wiki_bold ⇒ Object
12 13 14 |
# File 'lib/ext/string.rb', line 12 def wiki_bold "'''" + self + "'''" end |
#wiki_italic ⇒ Object
8 9 10 |
# File 'lib/ext/string.rb', line 8 def wiki_italic "''" + self + "''" end |
#wiki_pre ⇒ Object
2 3 4 5 6 |
# File 'lib/ext/string.rb', line 2 def wiki_pre lines.map do |line| ' ' + line end.join end |
#wiki_td(options = {}) ⇒ Object
16 17 18 |
# File 'lib/ext/string.rb', line 16 def wiki_td(={}) wiki_table_element '|', end |
#wiki_th(options = {}) ⇒ Object
20 21 22 |
# File 'lib/ext/string.rb', line 20 def wiki_th(={}) wiki_table_element '!', end |