summaryrefslogtreecommitdiff
path: root/lib/pry/terminal.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pry/terminal.rb')
-rw-r--r--lib/pry/terminal.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/pry/terminal.rb b/lib/pry/terminal.rb
index c09c6178..04367e2e 100644
--- a/lib/pry/terminal.rb
+++ b/lib/pry/terminal.rb
@@ -12,18 +12,18 @@ class Pry
end
# Return a screen size or a default if that fails.
- def size!(default = [27, 80])
+ def size(default = [27, 80])
screen_size || default
end
# Return a screen width or the default if that fails.
- def width!
- size![1]
+ def width
+ size[1]
end
# Return a screen height or the default if that fails.
- def height!
- size![0]
+ def height
+ size[0]
end
def actual_screen_size