diff options
| author | Chris Aporta <[email protected]> | 2016-03-13 13:49:19 -0400 |
|---|---|---|
| committer | Chris Aporta <[email protected]> | 2016-03-13 13:49:19 -0400 |
| commit | cc85864f0936262f7bab586f9f2b22cd08059a12 (patch) | |
| tree | 1518e096d57e60cfe2c4bc968c0879292e49c98b /tests | |
| parent | 96823748c68c65d1d54df7b0d9336df080b62d58 (diff) | |
| download | ruby2d-cc85864f0936262f7bab586f9f2b22cd08059a12.tar.gz ruby2d-cc85864f0936262f7bab586f9f2b22cd08059a12.zip | |
refactor set method to return true or false
in previous implementation, set method was returning either the value of @height or nil (as evaluated by final if statement).
returning boolean to reflect either successful or unsuccessful assignment seems to match return patterns in other window methods (e.g. #add, #remove).
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/testcard.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/testcard.rb b/tests/testcard.rb index 1ab2267..4954d20 100644 --- a/tests/testcard.rb +++ b/tests/testcard.rb @@ -1,5 +1,6 @@ require 'ruby2d' +binding.pry set width: 700, height: 500, title: "Ruby 2D – Testcard" # Read window attributes |
