Class: Jing

Inherits:
Object
  • Object
show all
Defined in:
lib/tebako-runtime/adapters/jing.rb

Overview

Unpack jing.jar

Constant Summary collapse

DEFAULT_JAR =
TebakoRuntime.extract_memfs(tmp)

Instance Method Summary collapse

Constructor Details

#initialize(schema, options = nil) ⇒ Jing

Returns a new instance of Jing.



37
38
39
# File 'lib/tebako-runtime/adapters/jing.rb', line 37

def initialize(schema, options = nil)
  original_initialize(TebakoRuntime.extract_memfs(schema, wild: true), options)
end

Instance Method Details

#original_initializeObject



34
# File 'lib/tebako-runtime/adapters/jing.rb', line 34

alias original_initialize initialize

#original_validateObject



35
# File 'lib/tebako-runtime/adapters/jing.rb', line 35

alias original_validate validate

#validate(xml) ⇒ Object



41
42
43
# File 'lib/tebako-runtime/adapters/jing.rb', line 41

def validate(xml)
  original_validate(TebakoRuntime.extract_memfs(xml))
end