Skip to content

Commit

Permalink
gem
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Nov 7, 2024
1 parent 8ecfcf6 commit 4619dc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/prints/base_esc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ def cut!
@data << EscHelper.sequence(Escpos::PAPER_FULL_CUT)
end

def render
to_escpos.bytes.map {|i| i.to_s(16) }.join('')
end

def to_escpos
@data
end
Expand Down

0 comments on commit 4619dc2

Please sign in to comment.