Class: Inochi::Engine
Class Method Summary collapse
-
.render_rbs(binding, filename, template = File.read(filename)) ⇒ Object
Renders the given RBS (ruby string) file and/or template inside the given binding.
Instance Method Summary collapse
Methods included from Generate
Class Method Details
.render_rbs(binding, filename, template = File.read(filename)) ⇒ Object
Renders the given RBS (ruby string) file and/or template inside the given binding.
28 29 30 31 |
# File 'lib/inochi/engine.rb', line 28 def self.render_rbs binding, filename, template = File.read(filename) here = "TEMPORARY_HERE_DOC#{object_id}TEMPORARY_HERE_DOC" eval("<<#{here}\n#{template}\n#{here}", binding, filename).chomp end |
Instance Method Details
#run ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/inochi/engine.rb', line 13 def run register_init_task if has_project_config? load_project_config register_rake_tasks end run_rake_tasks end |