Class: MP3Preview::Point

Inherits:
Object
  • Object
show all
Defined in:
lib/mp3preview/mp3_preview.rb

Overview

Internal class for representing points

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x, y) ⇒ Point

Returns a new instance of Point.



11
12
13
14
# File 'lib/mp3preview/mp3_preview.rb', line 11

def initialize(x, y)
  @x = x
  @y = y
end

Instance Attribute Details

#xObject (readonly)

Returns the value of attribute x.



10
11
12
# File 'lib/mp3preview/mp3_preview.rb', line 10

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



10
11
12
# File 'lib/mp3preview/mp3_preview.rb', line 10

def y
  @y
end