Module: PasswordCheatSheet
- Defined in:
- lib/password_cheat_sheet.rb,
lib/password_cheat_sheet/version.rb
Defined Under Namespace
Classes: Error
Constant Summary collapse
- VERSION =
"0.0.5"
Class Method Summary collapse
Class Method Details
.to_html(password_list) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/password_cheat_sheet.rb', line 10 def self.to_html(password_list) out =File.open(__dir__+"/password_cheat_sheet.liquid") do |f| template = Liquid::Template.parse(f.read) template.render( 'password_list' => password_list ) end return out end |