Class: Repla::Print::View
- Defined in:
- lib/repla/test/packages/Print.replaplugin/Contents/Resources/lib/view.rb
Overview
Print view
Constant Summary collapse
- ROOT_ACCESS_DIRECTORY =
File.join(__dir__, '../../../../../../')
- HTML_DIRECTORY =
File.join(__dir__, '../html/')
- VIEW_TEMPLATE =
File.join(HTML_DIRECTORY, 'index.html')
Constants inherited from Window
Window::CLOSEWINDOW_SCRIPT, Window::DOJAVASCRIPT_SCRIPT, Window::GOBACK_SCRIPT, Window::GOFORWARD_SCRIPT, Window::LOADWITHROOTACCESSDIRECTORY_SCRIPT, Window::LOAD_SCRIPT, Window::LOAD_URL_CACHE_SCRIPT, Window::LOAD_URL_SCRIPT, Window::READ_FROM_STANDARD_INPUT_SCRIPT, Window::RELOAD_SCRIPT
Instance Attribute Summary
Attributes inherited from Window
Instance Method Summary collapse
-
#initialize ⇒ View
constructor
A new instance of View.
Methods inherited from View
#do_javascript_function, javascript_function, #view_id
Methods inherited from Window
#close, #dark_mode, #do_javascript, #go_back, #go_forward, #load_file, #load_url, #read_from_standard_input, #reload, #split_id, #split_id_last, #window_id
Constructor Details
#initialize ⇒ View
Returns a new instance of View.
10 11 12 13 14 15 16 |
# File 'lib/repla/test/packages/Print.replaplugin/Contents/Resources/lib/view.rb', line 10 def initialize super self.root_access_directory_path = File.( ROOT_ACCESS_DIRECTORY ) load_file(VIEW_TEMPLATE) end |