Class: Jekyll::Pseudo::MockBrush
- Defined in:
- lib/jekyll-pseudo/mock_brush.rb
Instance Method Summary collapse
- #comment(txt) ⇒ Object
- #fn(txt) ⇒ Object
- #indent(txt) ⇒ Object
- #op(txt) ⇒ Object
- #plain(txt) ⇒ Object
- #string(txt) ⇒ Object
- #sym(txt) ⇒ Object
- #var(txt, sub) ⇒ Object
Instance Method Details
#comment(txt) ⇒ Object
22 23 24 |
# File 'lib/jekyll-pseudo/mock_brush.rb', line 22 def comment(txt) "c(#{txt})" end |
#fn(txt) ⇒ Object
10 11 12 |
# File 'lib/jekyll-pseudo/mock_brush.rb', line 10 def fn(txt) "fn(#{txt})" end |
#indent(txt) ⇒ Object
34 35 36 |
# File 'lib/jekyll-pseudo/mock_brush.rb', line 34 def indent(txt) "i(#{txt})" end |
#op(txt) ⇒ Object
26 27 28 |
# File 'lib/jekyll-pseudo/mock_brush.rb', line 26 def op(txt) "op(#{txt})" end |
#plain(txt) ⇒ Object
38 39 40 |
# File 'lib/jekyll-pseudo/mock_brush.rb', line 38 def plain(txt) txt end |
#string(txt) ⇒ Object
30 31 32 |
# File 'lib/jekyll-pseudo/mock_brush.rb', line 30 def string(txt) "str(#{txt})" end |
#sym(txt) ⇒ Object
6 7 8 |
# File 'lib/jekyll-pseudo/mock_brush.rb', line 6 def sym(txt) "sym(#{txt})" end |
#var(txt, sub) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/jekyll-pseudo/mock_brush.rb', line 14 def var(txt, sub) if sub "#{txt}sub(#{sub.slice(1,sub.size)})" else txt end end |