Top Level Namespace

Defined Under Namespace

Modules: Nelson

Instance Method Summary collapse

Instance Method Details

#Term(value) ⇒ Object



105
106
107
108
109
110
111
112
# File 'lib/nelson/term.rb', line 105

def Term(value)
  case value
  when Nelson::Term, Nelson::Expression
    value
  when Numeric
    Nelson::Term.new(value)
  end
end