Class: Mida::DataType::Number

Inherits:
Generic
  • Object
show all
Defined in:
lib/mida/datatype/number.rb

Overview

Number data type Provides access to Float methods

Instance Method Summary collapse

Methods inherited from Generic

#==, #method_missing, parse, #to_s, #to_yaml

Constructor Details

#initialize(value) ⇒ Number

Raises ArgumentError if value not valid



9
10
11
# File 'lib/mida/datatype/number.rb', line 9

def initialize(value)
  @parsedValue = ::Kernel.Float(value)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Mida::DataType::Generic