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



8
9
10
# File 'lib/active_scaffold/data_structures/bridge.rb', line 8

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

.javascriptsObject



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

def self.javascripts
end

.runObject



12
13
14
# File 'lib/active_scaffold/data_structures/bridge.rb', line 12

def self.run
  install if install?
end

.stylesheetsObject



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

def self.stylesheets
end