From f85de56c87d5e5a1e5f114a5a52ffcea7cd2ea71 Mon Sep 17 00:00:00 2001 From: Tom Black Date: Tue, 28 Feb 2017 20:13:23 -0500 Subject: Update attribute accessors / readers --- lib/ruby2d/text.rb | 4 ++-- lib/ruby2d/window.rb | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'lib') 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 = {}) -- cgit v1.2.3