lib/rubrowser/renderer.rb in rubrowser-2.0.0 vs lib/rubrowser/renderer.rb in rubrowser-2.1.0
- old
+ new
@@ -4,10 +4,11 @@
module Rubrowser
class Renderer
# Accepted options are:
# files: list of file paths to parse
+ # toolbox: bool, show/hide toolbox
def self.call(options = {})
new(options).call
end
def call
@@ -20,9 +21,14 @@
attr_reader :files
def initialize(options)
@files = options[:files]
+ @toolbox = options[:toolbox]
+ end
+
+ def toolbox?
+ @toolbox
end
def data
data = Data.new(files)
formatter = Formatter::JSON.new(data)