class MotionSplash
Public Class Methods
generate!()
click to toggle source
# File lib/motion-splash.rb, line 4 def self.generate! @should_generate = true end
setup(app) { |config| ... }
click to toggle source
# File lib/motion-splash.rb, line 12 def self.setup(app) config = Config.new(app) yield(config) if block_given? config.finish splash_delegate = File.join(File.dirname(__FILE__), 'motion-splash/splash_app_delegate.rb') if MotionSplash.should_generate? app.files << File.join(File.dirname(__FILE__), 'motion-splash/generator.rb') app.files << File.join(File.dirname(__FILE__), 'motion-splash/config.rb') app.files << splash_delegate system("touch \"#{splash_delegate}\"") else if File.mtime(splash_delegate) >= File.mtime(config.app_delegate_file) system("touch \"#{config.app_delegate_file}\"") end end end
should_generate?()
click to toggle source
# File lib/motion-splash.rb, line 8 def self.should_generate? @should_generate end