Class: ActiveScaffold::DataStructures::Bridge

Inherits:
Object
  • Object
show all
Defined in:
lib/active_scaffold/data_structures/bridge.rb

Class Method Summary collapse

Class Method Details

.installObject

Raises:

  • (RunTimeError)

3
4
5
# File 'lib/active_scaffold/data_structures/bridge.rb', line 3

def self.install
  raise RunTimeError, "install not defined for bridge #{name}"
end

.install?Boolean

by convention and default, use the bridge name as the required constant for installation

Returns:

  • (Boolean)

10
11
12
# File 'lib/active_scaffold/data_structures/bridge.rb', line 10

def self.install?
  Object.const_defined? name.demodulize
end

.javascriptsObject


20
# File 'lib/active_scaffold/data_structures/bridge.rb', line 20

def self.javascripts; end

.prepareObject


7
# File 'lib/active_scaffold/data_structures/bridge.rb', line 7

def self.prepare; end

.runObject


14
15
16
# File 'lib/active_scaffold/data_structures/bridge.rb', line 14

def self.run
  install if install?
end

.stylesheetsObject


18
# File 'lib/active_scaffold/data_structures/bridge.rb', line 18

def self.stylesheets; end