Class: Dvi::Rule
- Inherits:
-
Object
- Object
- Dvi::Rule
- Defined in:
- lib/dvi.rb
Overview
Rule is a class for solid black rectangles.
Instance Attribute Summary collapse
-
#h ⇒ Object
readonly
Returns the value of attribute h.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#v ⇒ Object
readonly
Returns the value of attribute v.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(h, v, height, width) ⇒ Rule
constructor
A new instance of Rule.
Constructor Details
#initialize(h, v, height, width) ⇒ Rule
Returns a new instance of Rule.
58 59 60 61 62 63 |
# File 'lib/dvi.rb', line 58 def initialize(h, v, height, width) @h = h @v = v @height = height @width = width end |
Instance Attribute Details
#h ⇒ Object (readonly)
Returns the value of attribute h.
57 58 59 |
# File 'lib/dvi.rb', line 57 def h @h end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
57 58 59 |
# File 'lib/dvi.rb', line 57 def height @height end |
#v ⇒ Object (readonly)
Returns the value of attribute v.
57 58 59 |
# File 'lib/dvi.rb', line 57 def v @v end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
57 58 59 |
# File 'lib/dvi.rb', line 57 def width @width end |