Class: Dvi::Rule

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

Overview

Rule is a class for solid black rectangles.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hObject (readonly)

Returns the value of attribute h.



57
58
59
# File 'lib/dvi.rb', line 57

def h
  @h
end

#heightObject (readonly)

Returns the value of attribute height.



57
58
59
# File 'lib/dvi.rb', line 57

def height
  @height
end

#vObject (readonly)

Returns the value of attribute v.



57
58
59
# File 'lib/dvi.rb', line 57

def v
  @v
end

#widthObject (readonly)

Returns the value of attribute width.



57
58
59
# File 'lib/dvi.rb', line 57

def width
  @width
end