Module: Rapid::Setting::Comments
- Defined in:
- lib/rapid/setting/comments.rb
Instance Method Summary collapse
Instance Method Details
#comment_if(boolean) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/rapid/setting/comments.rb', line 14 def comment_if boolean if boolean "# " else nil end end |
#comment_unless(boolean) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/rapid/setting/comments.rb', line 6 def comment_unless boolean if boolean nil else "# " end end |