diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-07-02 02:13:31 -0300 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-07-02 02:13:31 -0300 |
commit | 174a063138ab757fd090b2a1b283b786ca573899 (patch) | |
tree | 9ca5d8b2ecb861e588dc3c4cf966bfb67c0506ee /lib/highline/statement.rb | |
parent | 1c35f06613c0813110b5887b3ab3f2f67457391c (diff) | |
download | highline-174a063138ab757fd090b2a1b283b786ca573899.tar.gz |
More manual fixes for rubocop warnings
Diffstat (limited to 'lib/highline/statement.rb')
-rw-r--r-- | lib/highline/statement.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/highline/statement.rb b/lib/highline/statement.rb index b5938a9..85035e4 100644 --- a/lib/highline/statement.rb +++ b/lib/highline/statement.rb @@ -45,6 +45,10 @@ class HighLine statement end + def self.const_missing(constant) + HighLine.const_get(constant) + end + private def stringfy(template_string) @@ -59,7 +63,9 @@ class HighLine statement = HighLine::Wrapper.wrap(statement, highline.wrap_at) statement = HighLine::Paginator.new(highline).page_print(statement) - statement = statement.gsub(/\n(?!$)/, "\n#{highline.indentation}") if highline.multi_indent + statement = statement.gsub(/\n(?!$)/, "\n#{highline.indentation}") if + highline.multi_indent + statement end @@ -74,9 +80,5 @@ class HighLine def template @template ||= ERB.new(template_string, nil, "%") end - - def self.const_missing(constant) - HighLine.const_get(constant) - end end end |