Class: Keisan::Variables::DefaultRegistry
- Defined in:
- lib/keisan/variables/default_registry.rb
Constant Summary collapse
- VARIABLES =
{ "PI" => Math::PI, "E" => Math::E, "I" => Complex(0,1), "INF" => Float::INFINITY }
Instance Attribute Summary
Attributes inherited from Registry
Class Method Summary collapse
Methods inherited from Registry
#[], #freeze, #has?, #initialize, #locals, #modifiable?, #register!
Constructor Details
This class inherits a constructor from Keisan::Variables::Registry
Class Method Details
.registry ⇒ Object
11 12 13 |
# File 'lib/keisan/variables/default_registry.rb', line 11 def self.registry @registry ||= Registry.new(variables: VARIABLES, parent: nil, force: true).freeze end |