lib/reterm/loader.rb
# Initialie new loader from JSON string
Initialie new loader from JSON string
Initialie new loader from JSON string
def parse_doc(str)
      @j = JSON.parse(str)
      raise ArgumentError unless @j.is_a?(Hash)
      raise ArgumentError unless @j.key?("window")
      parse_colors(@j['colors']) if @j.key?('colors')
      @win = parse_win(@j['window'])
      update_reterm
    end
def parse_doc ( str ) @j = JSON . parse ( str ) raise ArgumentError unless @j . is_a? ( Hash ) raise ArgumentError unless @j . key? ( "window" ) parse_colors ( @j [ 'colors' ] ) if @j . key? ( 'colors' ) @win = parse_win ( @j [ 'window' ] ) update_reterm end
Initialie new loader from JSON string
Initialie new loader from JSON string
str
<not_specific>