summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2018-10-28 05:04:13 +0800
committerKyrylo Silin <silin@kyrylo.org>2018-10-28 05:04:13 +0800
commitae531ac738675cc8294d59c4f58e8043946afe11 (patch)
treef9d02ca5af5155169a8ee30dede6113d93b54bc3
parenta1d52a427ab48c3e0541c378067d4c659aa6b73e (diff)
downloadpry-ae531ac738675cc8294d59c4f58e8043946afe11.tar.gz
prompt: use explicit nesting for class definition
Per https://github.com/rubocop-hq/ruby-style-guide#namespace-definition
-rw-r--r--lib/pry/prompt.rb44
1 files changed, 23 insertions, 21 deletions
diff --git a/lib/pry/prompt.rb b/lib/pry/prompt.rb
index 62f0bc1f..90effc7f 100644
--- a/lib/pry/prompt.rb
+++ b/lib/pry/prompt.rb
@@ -1,26 +1,28 @@
-class Pry::Prompt
- MAP = {
- "default" => {
- value: Pry::DEFAULT_PROMPT,
- description: "The default Pry prompt. Includes information about the\n" \
- "current expression number, evaluation context, and nesting\n" \
- "level, plus a reminder that you're using Pry."
- },
+class Pry
+ class Prompt
+ MAP = {
+ "default" => {
+ value: Pry::DEFAULT_PROMPT,
+ description: "The default Pry prompt. Includes information about the\n" \
+ "current expression number, evaluation context, and nesting\n" \
+ "level, plus a reminder that you're using Pry."
+ },
- "simple" => {
- value: Pry::SIMPLE_PROMPT,
- description: "A simple '>>'."
- },
+ "simple" => {
+ value: Pry::SIMPLE_PROMPT,
+ description: "A simple '>>'."
+ },
- "nav" => {
- value: Pry::NAV_PROMPT,
- description: "A prompt that displays the binding stack as a path and\n" \
- "includes information about _in_ and _out_."
- },
+ "nav" => {
+ value: Pry::NAV_PROMPT,
+ description: "A prompt that displays the binding stack as a path and\n" \
+ "includes information about _in_ and _out_."
+ },
- "none" => {
- value: Pry::NO_PROMPT,
- description: "Wave goodbye to the Pry prompt."
+ "none" => {
+ value: Pry::NO_PROMPT,
+ description: "Wave goodbye to the Pry prompt."
+ }
}
- }
+ end
end