Class: Serenity::LiteralLine

Inherits:
CodeLine show all
Defined in:
lib/serenity/serenity/line.rb

Instance Attribute Summary

Attributes inherited from Line

#text

Instance Method Summary collapse

Methods inherited from CodeLine

#escape_code

Methods inherited from Line

code, #initialize, literal, string, text, #to_s

Constructor Details

This class inherits a constructor from Serenity::Line

Instance Method Details

#to_bufObject



62
63
64
# File 'lib/serenity/serenity/line.rb', line 62

def to_buf
  " _buf << (" << escape_code(@text) << ").to_s;"
end