Skip to content

Instantly share code, notes, and snippets.

@scalone
Last active December 27, 2015 11:49
Show Gist options
  • Save scalone/7321613 to your computer and use it in GitHub Desktop.
Save scalone/7321613 to your computer and use it in GitHub Desktop.
class MyClass
include PosxmlParser
def start
use_thread = false
posxml_files_path = "./"
main = "main.posxml"
posxml_configure!("", , use_thread)
end
end
class MyClass
include PosxmlParser
# see lib/posxml_parse/instructions.rb to implement platform instructions
interface_display do |column, line, text|
puts text.value
end
def start
use_thread = false
posxml_files_path = "./"
main = "main.posxml"
posxml_configure!("", , use_thread)
# execution loop
posxml_loop
end
end
my_class = MyClass.new
my_class.start # Read, parse and execute main.posxml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment