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.



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

def initialize(driver)
  @driver = driver
end

Instance Attribute Details

#catalystObject

Returns the value of attribute catalyst.



8
9
10
# File 'lib/chemistrykit/formula/base.rb', line 8

def catalyst
  @catalyst
end

Instance Method Details

#catalyze(path_to_file) ⇒ Object



14
15
16
# File 'lib/chemistrykit/formula/base.rb', line 14

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