Module: GfmLivePreview

Extended by:
GfmLivePreview
Included in:
GfmLivePreview
Defined in:
lib/gfm_live_preview.rb,
lib/gfm_live_preview/cli.rb,
lib/gfm_live_preview/server.rb,
lib/gfm_live_preview/version.rb,
lib/gfm_live_preview/syntax_highlighter.rb

Defined Under Namespace

Classes: CLI, Server, SyntaxHighlighter

Constant Summary collapse

VERSION =
"0.9.6"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



13
14
15
# File 'lib/gfm_live_preview.rb', line 13

def file
  @file
end

Instance Method Details

#configObject



24
25
26
# File 'lib/gfm_live_preview.rb', line 24

def config
  @config ||= {}
end

#run!(argv) ⇒ Object



18
19
20
21
22
# File 'lib/gfm_live_preview.rb', line 18

def run! argv
  @file, options = CLI.parse argv
  config.update options
  Server.run!
end