Class: Blood

Inherits:
Struct
  • Object
show all
Includes:
Renderable
Defined in:
lib/roflbalt.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Renderable

#each_pixel, #right_x

Instance Attribute Details

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



386
387
388
# File 'lib/roflbalt.rb', line 386

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



386
387
388
# File 'lib/roflbalt.rb', line 386

def y
  @y
end

Instance Method Details

#heightObject



388
# File 'lib/roflbalt.rb', line 388

def height; 4 end

#pixel(x, y, rx, ry, ticks) ⇒ Object



391
392
393
# File 'lib/roflbalt.rb', line 391

def pixel x, y, rx, ry, ticks
  Pixel.new ":", 124, 52
end

#widthObject



389
# File 'lib/roflbalt.rb', line 389

def width; 2 end