Class: GHPreview::Previewer
- Inherits:
-
Object
- Object
- GHPreview::Previewer
- Defined in:
- lib/ghpreview/previewer.rb
Instance Method Summary collapse
-
#initialize(md_filepath, options = {}) ⇒ Previewer
constructor
A new instance of Previewer.
- #listen ⇒ Object
- #open ⇒ Object
Constructor Details
#initialize(md_filepath, options = {}) ⇒ Previewer
Returns a new instance of Previewer.
9 10 11 12 13 14 15 16 |
# File 'lib/ghpreview/previewer.rb', line 9 def initialize(md_filepath, = {}) Wrapper.generate_template_with_fingerprinted_stylesheet_links @md_filepath = md_filepath @application = [:application] [:watch] ? listen : open end |