Class: ActiveScaffold::DataStructures::Bridge
- Inherits:
-
Object
- Object
- ActiveScaffold::DataStructures::Bridge
show all
- Defined in:
- lib/active_scaffold/data_structures/bridge.rb
Class Method Summary
collapse
Class Method Details
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
|
.javascripts ⇒ Object
19
20
|
# File 'lib/active_scaffold/data_structures/bridge.rb', line 19
def self.javascripts
end
|
12
13
14
|
# File 'lib/active_scaffold/data_structures/bridge.rb', line 12
def self.run
install if install?
end
|
.stylesheets ⇒ Object
16
17
|
# File 'lib/active_scaffold/data_structures/bridge.rb', line 16
def self.stylesheets
end
|