Class: Hawk::Hawkifier
- Inherits:
-
Object
- Object
- Hawk::Hawkifier
- Defined in:
- lib/hawk/hawkifier.rb
Instance Method Summary collapse
- #hawkify ⇒ Object
-
#initialize(dir) ⇒ Hawkifier
constructor
A new instance of Hawkifier.
Constructor Details
#initialize(dir) ⇒ Hawkifier
Returns a new instance of Hawkifier.
5 6 7 |
# File 'lib/hawk/hawkifier.rb', line 5 def initialize(dir) @dir = dir end |
Instance Method Details
#hawkify ⇒ Object
9 10 11 12 13 14 |
# File 'lib/hawk/hawkifier.rb', line 9 def hawkify files.each do |name, contents| write_file_if_not_exist(name, contents) end puts "hawkify done" end |