Module: BrighterPlanet::Automobile

Extended by:
Emitter
Included in:
AutomobileRecord
Defined in:
lib/automobile.rb,
lib/automobile/data.rb,
lib/automobile/carbon_model.rb,
lib/automobile/summarization.rb,
lib/automobile/characterization.rb

Defined Under Namespace

Modules: CarbonModel, Characterization, Data, Summarization

Class Method Summary collapse

Class Method Details

.automobile_modelObject



7
8
9
10
11
12
13
14
15
# File 'lib/automobile.rb', line 7

def self.automobile_model
  if Object.const_defined? 'Automobile'
    ::Automobile
  elsif Object.const_defined? 'AutomobileRecord'
    AutomobileRecord
  else
    raise 'There is no automobile model'
  end
end