Class: ChemistryKit::Formula::Base
- Inherits:
-
Object
- Object
- ChemistryKit::Formula::Base
- Defined in:
- lib/chemistrykit/formula/base.rb
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.
7 8 9 |
# File 'lib/chemistrykit/formula/base.rb', line 7 def initialize(driver) @driver = driver end |
Instance Attribute Details
#catalyst ⇒ Object
Returns the value of attribute catalyst.
5 6 7 |
# File 'lib/chemistrykit/formula/base.rb', line 5 def catalyst @catalyst end |
Instance Method Details
#catalyze(path_to_file) ⇒ Object
11 12 13 |
# File 'lib/chemistrykit/formula/base.rb', line 11 def catalyze(path_to_file) self.catalyst = ChemistryKit::Catalyst.new(path_to_file) end |