Skip to content

Commit

Permalink
saving classes
Browse files Browse the repository at this point in the history
  • Loading branch information
psyho committed Aug 9, 2013
1 parent 1cfe3a7 commit cc91f89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions benchmark/.gitignore
@@ -0,0 +1 @@
lib
8 changes: 6 additions & 2 deletions benchmark/generate.rb
Expand Up @@ -110,6 +110,10 @@ def call_#{d.as_var}(x)
Klass.create(name: name, dependency_names: dependencies)
end

classes.take(5).each do |k|
puts KlassBodyPresenter.new(k).body
require 'fileutils'

FileUtils.mkdir_p("lib/klasses")
classes.each do |k|
body = KlassBodyPresenter.new(k).body
File.write("lib/klasses/#{k.name}.rb", body)
end

0 comments on commit cc91f89

Please sign in to comment.