Class: ChemistryKit::Formula::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/chemistrykit/formula/base.rb

Overview

Base functionality for the Formula class

Direct Known Subclasses

Formula

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(driver) ⇒ Base

Returns a new instance of Base.



12
13
14
# File 'lib/chemistrykit/formula/base.rb', line 12

def initialize(driver)
  @driver = driver
end

Instance Attribute Details

#catalystObject

Returns the value of attribute catalyst.



10
11
12
# File 'lib/chemistrykit/formula/base.rb', line 10

def catalyst
  @catalyst
end

Instance Method Details

#catalyze(path_to_file) ⇒ Object



16
17
18
# File 'lib/chemistrykit/formula/base.rb', line 16

def catalyze(path_to_file)
  self.catalyst = ChemistryKit::Catalyst.new(path_to_file)
end