Class: MP3Preview::Point
- Inherits:
-
Object
- Object
- MP3Preview::Point
- Defined in:
- lib/mp3preview/mp3_preview.rb
Overview
Internal class for representing points
Instance Attribute Summary collapse
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x, y) ⇒ Point
constructor
A new instance of Point.
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
#x ⇒ Object (readonly)
Returns the value of attribute x.
10 11 12 |
# File 'lib/mp3preview/mp3_preview.rb', line 10 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
10 11 12 |
# File 'lib/mp3preview/mp3_preview.rb', line 10 def y @y end |