Sha256: ac50c227b17f45791f069f84105256d177d9ce2ba53fb9a198475b82cf3e4c9b

Contents?: true

Size: 566 Bytes

Versions: 9

Compression:

Stored size: 566 Bytes

Contents

require_relative "view/javascript"
require_relative "view/erb"
require_relative "view/resources"

module WebConsole
  class View

    attr_reader :window
    def initialize
      @window = WebConsole::Window.new
    end

    def base_url=(value)
      @window.base_url = value
    end

    def base_url_path=(value)
      @window.base_url_path = value
    end

    def load_html(html)
      @window.load_html(html)
    end

    def do_javascript(javascript)
      return @window.do_javascript(javascript)
    end

    def close
      @window.close
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
webconsole-0.1.12 lib/webconsole/lib/view.rb
webconsole-0.1.11 lib/webconsole/lib/view.rb
webconsole-0.1.10 lib/webconsole/lib/view.rb
webconsole-0.1.5 lib/webconsole/lib/view.rb
webconsole-0.1.4 lib/webconsole/lib/view.rb
webconsole-0.1.3 lib/webconsole/lib/view.rb
webconsole-0.1.2 lib/webconsole/lib/view.rb
webconsole-0.1.1 lib/webconsole/lib/view.rb
webconsole-0.1.0 lib/webconsole/lib/view.rb