Class: ChemistryKit::Formula::Base
- Inherits:
-
Object
- Object
- ChemistryKit::Formula::Base
- Defined in:
- lib/chemistrykit/formula/base.rb
Overview
Base functionality for the Formula class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#catalyst ⇒ Object
Returns the value of attribute catalyst.
Instance Method Summary collapse
- #catalyze(path_to_file) ⇒ Object
-
#initialize(driver) ⇒ Base
constructor
A new instance of Base.
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
#catalyst ⇒ Object
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 |