Returns a new instance of Base10.
8 9 10 11 12
# File 'lib/query/node/base_10.rb', line 8 def initialize(parsed) self.whole = parsed.delete(:whole) self.exponent = Node::Value.new(parsed.delete(:exponent)) if parsed.key?(:exponent) end