Method: BrowserAppBase.get_app_file

Defined in:
lib/browser_app_base.rb

.get_app_file(app) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/browser_app_base.rb', line 9

def self.get_app_file(app)
  app_file_name = ""
  app.each_char do |s|
    if s =~ /[A-Z]/
      app_file_name += "_" if app_file_name.size != 0
      app_file_name += s.downcase
    else
      app_file_name += s
    end
  end
  return app_file_name + ".rb"
end