Class: JotPDF::Core::ContentStreamWriteContext

Inherits:
WriteContext
  • Object
show all
Defined in:
lib/jot_pdf/core.rb

Instance Method Summary collapse

Methods inherited from WriteContext

#dsl, #initialize, #objects

Constructor Details

This class inherits a constructor from JotPDF::Core::WriteContext

Instance Method Details

#op(operator, &block) ⇒ Object



95
96
97
98
# File 'lib/jot_pdf/core.rb', line 95

def op(operator, &block)
  ObjectWriteContext.new(@writer).dsl(&block) if block
  @writer << " " << operator << "\n"
end