Class: Keisan::Variables::DefaultRegistry

Inherits:
Registry
  • Object
show all
Defined in:
lib/keisan/variables/default_registry.rb

Constant Summary collapse

VARIABLES =
{
  "PI" => Math::PI,
  "E" => Math::E,
  "I" => Complex(0,1)
}

Instance Attribute Summary

Attributes inherited from Registry

#shadowed

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

.registryObject



10
11
12
# File 'lib/keisan/variables/default_registry.rb', line 10

def self.registry
  @registry ||= Registry.new(variables: VARIABLES, parent: nil, force: true).freeze
end