Class: Cheatset::Creator
- Inherits:
-
Object
- Object
- Cheatset::Creator
- Defined in:
- lib/cheatset/creator.rb
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(cheatsheet, filename) ⇒ Creator
constructor
A new instance of Creator.
Constructor Details
#initialize(cheatsheet, filename) ⇒ Creator
Returns a new instance of Creator.
10 11 12 13 14 15 |
# File 'lib/cheatset/creator.rb', line 10 def initialize(cheatsheet, filename) @cheatsheet = cheatsheet @filename = filename @docset_path = "#{@cheatsheet.docset_file_name}.docset" @path = "#{@docset_path}/Contents/" end |
Instance Method Details
#generate ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/cheatset/creator.rb', line 17 def generate FileUtils.rm_rf(@path) FileUtils.mkdir_p(@path) generate_html_file generate_plist_file generate_database end |