summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTom Black <[email protected]>2017-02-17 00:58:40 -0500
committerTom Black <[email protected]>2017-02-17 00:58:40 -0500
commit3c5ee5d043ca5bcf4e579a60289bd2b18361c6ba (patch)
tree04229c04364e715ae840926d0696d71dd55805b6
parentd426b3c21269df23cfbc4dd634c35d5d487aa090 (diff)
downloadruby2d-3c5ee5d043ca5bcf4e579a60289bd2b18361c6ba.tar.gz
ruby2d-3c5ee5d043ca5bcf4e579a60289bd2b18361c6ba.zip
Clean up text class
-rw-r--r--lib/ruby2d/text.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/ruby2d/text.rb b/lib/ruby2d/text.rb
index 2bf890c..341384e 100644
--- a/lib/ruby2d/text.rb
+++ b/lib/ruby2d/text.rb
@@ -3,10 +3,10 @@
module Ruby2D
class Text
- attr_accessor :x, :y, :size, :text, :data
+ attr_accessor :x, :y, :size, :data
attr_reader :color
- def initialize(x=0, y=0, size=20, text="Hello World!", font="Arial", c="white")
+ def initialize(x=0, y=0, text="Hello World!", size=20, font=nil, c="white")
# if File.exists? font
@font = font
@@ -25,10 +25,6 @@ module Ruby2D
@color = Color.new(c)
end
- def text=(t)
- @text = t
- end
-
def add
if Module.const_defined? :DSL
Application.add(self)