class DataMetaDom::DimInfo

Simplest diminfo to be reused wherever no other aspect of a datatype is needed

@!attribute [r] len

@return [Fixnum] the Length part of the dimension info

@!attribute [r] scale

@return [Fixnum] the Scale part of the dimension info

Constants

NIL

Convenience constant - NIL dimension to use in the types that are not dimensioned.

Attributes

len[R]
scale[R]

Public Class Methods

new(len, scale) click to toggle source

Creates an instance with the given parameters

# File lib/dataMetaDom.rb, line 107
def initialize(len, scale); @len = len; @scale = scale end

Public Instance Methods

to_s() click to toggle source

Textual representation of this instance, length.scale

# File lib/dataMetaDom.rb, line 110
def to_s; "#{@len}.#{@scale}" end