summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTom Black <[email protected]>2017-02-28 20:13:23 -0500
committerTom Black <[email protected]>2017-02-28 20:13:23 -0500
commitf85de56c87d5e5a1e5f114a5a52ffcea7cd2ea71 (patch)
treed3faa4b413b18dd5445e6d5d29697f4db90d9167
parent0581723ab25ab791ca02a2f41e8e28e7ac5e418b (diff)
downloadruby2d-f85de56c87d5e5a1e5f114a5a52ffcea7cd2ea71.tar.gz
ruby2d-f85de56c87d5e5a1e5f114a5a52ffcea7cd2ea71.zip
Update attribute accessors / readers
-rw-r--r--lib/ruby2d/text.rb4
-rw-r--r--lib/ruby2d/window.rb3
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/ruby2d/text.rb b/lib/ruby2d/text.rb
index 8466af6..22325ff 100644
--- a/lib/ruby2d/text.rb
+++ b/lib/ruby2d/text.rb
@@ -3,8 +3,8 @@
module Ruby2D
class Text
- attr_accessor :x, :y, :size, :data
- attr_reader :color
+ attr_accessor :x, :y, :data
+ attr_reader :text, :size, :font, :color
def initialize(x=0, y=0, text="Hello World!", size=20, font=nil, c="white")
diff --git a/lib/ruby2d/window.rb b/lib/ruby2d/window.rb
index f6b7887..e2b7c88 100644
--- a/lib/ruby2d/window.rb
+++ b/lib/ruby2d/window.rb
@@ -2,9 +2,8 @@
module Ruby2D
class Window
- attr_reader :title, :width, :height,
- :objects, :diagnostics
+ attr_reader :objects
attr_accessor :mouse_x, :mouse_y, :frames, :fps
def initialize(args = {})