Class: B

Inherits:
A show all
Defined in:
lib/algebra/algebraic-parser.rb

Class Method Summary collapse

Methods inherited from A

ground

Class Method Details

.indeterminate(str) ⇒ Object



143
144
145
146
147
148
149
# File 'lib/algebra/algebraic-parser.rb', line 143

def self.indeterminate(str)
  case str
  when /\d+/ then Rational(eval($&))
  else
    super
  end
end