class Balrog::ViewGenerator
Public Instance Methods
copy_gate_view()
click to toggle source
# File lib/balrog/generators/view_generator.rb, line 4 def copy_gate_view gate_view = File.open( File.join(__dir__, '../../../', 'app/views/balrog/gate.html.erb'), 'r') content = gate_view.read gate_view.close create_file "app/views/balrog/gate.html.erb", content end
copy_layout()
click to toggle source
# File lib/balrog/generators/view_generator.rb, line 15 def copy_layout gate_view = File.open( File.join(__dir__, '../../../', 'app/views/layouts/balrog.html.erb'), 'r') content = gate_view.read gate_view.close create_file "app/views/layouts/balrog.html.erb", content end