Sha256: ae6701e013fe263ca0eb9e9e0ffbca04312c4e87780329f75997d0f78cc48d43
Contents?: true
Size: 338 Bytes
Versions: 12
Compression:
Stored size: 338 Bytes
Contents
module Gosuplus class Body attr_accessor :position, :a, :width, :height def initialize(position, width, height, angle = 90) raise ArgumentError, 'Position is not a instance of Vec2' unless position.is_a? Vec2 @position, @width, @height, @angle = position, width, height, angle end end end
Version data entries
12 entries across 12 versions & 1 rubygems