Class: Proj::Bounds
- Inherits:
-
Object
- Object
- Proj::Bounds
- Defined in:
- lib/proj/bounds.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#xmax ⇒ Object
readonly
Returns the value of attribute xmax.
-
#xmin ⇒ Object
readonly
Returns the value of attribute xmin.
-
#ymax ⇒ Object
readonly
Returns the value of attribute ymax.
-
#ymin ⇒ Object
readonly
Returns the value of attribute ymin.
Instance Method Summary collapse
-
#initialize(xmin, ymin, xmax, ymax, name = nil) ⇒ Bounds
constructor
A new instance of Bounds.
Constructor Details
#initialize(xmin, ymin, xmax, ymax, name = nil) ⇒ Bounds
Returns a new instance of Bounds.
5 6 7 8 9 10 11 |
# File 'lib/proj/bounds.rb', line 5 def initialize(xmin, ymin, xmax, ymax, name = nil) @xmin = xmin @ymin = ymin @xmax = xmax @ymax = ymax @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/proj/bounds.rb', line 3 def name @name end |
#xmax ⇒ Object (readonly)
Returns the value of attribute xmax.
3 4 5 |
# File 'lib/proj/bounds.rb', line 3 def xmax @xmax end |
#xmin ⇒ Object (readonly)
Returns the value of attribute xmin.
3 4 5 |
# File 'lib/proj/bounds.rb', line 3 def xmin @xmin end |
#ymax ⇒ Object (readonly)
Returns the value of attribute ymax.
3 4 5 |
# File 'lib/proj/bounds.rb', line 3 def ymax @ymax end |
#ymin ⇒ Object (readonly)
Returns the value of attribute ymin.
3 4 5 |
# File 'lib/proj/bounds.rb', line 3 def ymin @ymin end |