Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/codegen/util.rb
Instance Method Summary collapse
-
#append_line(&block) ⇒ Object
Small hack, didnt know if theres another option hehe.
Instance Method Details
#append_line(&block) ⇒ Object
Small hack, didnt know if theres another option hehe
3 4 5 |
# File 'lib/codegen/util.rb', line 3 def append_line &block (self + "\r\n").concat(yield(block)) end |