Class: Rlocu::Bounds
- Inherits:
-
Object
- Object
- Rlocu::Bounds
- Defined in:
- lib/utilities.rb
Instance Method Summary collapse
-
#initialize(loc1, loc2) ⇒ Bounds
constructor
A new instance of Bounds.
- #to_s ⇒ Object
Constructor Details
#initialize(loc1, loc2) ⇒ Bounds
Returns a new instance of Bounds.
29 30 31 32 |
# File 'lib/utilities.rb', line 29 def initialize(loc1, loc2) @loc1 = loc1 @loc2 = loc2 end |
Instance Method Details
#to_s ⇒ Object
34 35 36 |
# File 'lib/utilities.rb', line 34 def to_s "#{@loc1.to_s}|#{@loc2.to_s}" end |