Class: Rational

Inherits:
Object
  • Object
show all
Defined in:
lib/mext/music/meter.rb

Overview

we extend the Rational class to carry a to_meter which will convert a into a Meter class

Instance Method Summary collapse

Instance Method Details

#to_meterObject



85
86
87
# File 'lib/mext/music/meter.rb', line 85

def to_meter
  Meter(self.numerator, self.denominator)
end