module FeedBo::Drawable

Attributes

position[RW]
start_position[RW]
svg[RW]

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/feed_bo/drawable.rb, line 8
def initialize
  super
  @svg = ::Builder::XmlMarkup.new
  @position = [(Level::WIDTH/2).round, (Level::HEIGHT/2).round]
end

Public Instance Methods

draw() click to toggle source
# File lib/feed_bo/drawable.rb, line 14
def draw
  s = Level::FIELD_SIZE
  @svg.circle cx: s/2, cy: s/2, r: s/2, style: 'stroke: black; fill: black'
end
perform_step() click to toggle source
# File lib/feed_bo/drawable.rb, line 19
def perform_step
end