Class: Eqn::Terminal::Digits

Inherits:
EqnNode
  • Object
show all
Defined in:
lib/eqn/terminal.rb

Overview

Node class for a group of numbers.

Instance Method Summary collapse

Methods inherited from EqnNode

#clean_tree!, #term?

Instance Method Details

#dec_valueObject



16
17
18
# File 'lib/eqn/terminal.rb', line 16

def dec_value
  ".#{text_value}".to_f
end

#value(_vars = {}) ⇒ Object



20
21
22
# File 'lib/eqn/terminal.rb', line 20

def value(_vars = {})
  text_value.to_f
end