Class: RETerm::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/reterm/loader.rb

Overview

JSON schema loader, instantiates RETerm subsystem from schema stored in a JSON string. Currently this schema does not have a formal definition, but see examples/ for what can currently be done.

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ Loader

Initialie new loader from JSON string



8
9
10
11
# File 'lib/reterm/loader.rb', line 8

def initialize(str)
  require 'json'
  parse_doc(str)
end

Instance Method Details

#windowObject

Return top level window in loader



14
15
16
# File 'lib/reterm/loader.rb', line 14

def window
  @win
end