summaryrefslogtreecommitdiff
path: root/lib/highline/template_renderer.rb
diff options
context:
space:
mode:
authorAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-07-17 10:04:14 -0300
committerAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-07-17 10:09:22 -0300
commit3b7d9225df9667000951da9d5e36bdf067afe376 (patch)
tree3a2eb5a53ea72c757aed1dbac99f4fd93e96e7da /lib/highline/template_renderer.rb
parent5f6780d4f85272ccae5a81cb08a7811ebd005d65 (diff)
downloadhighline-3b7d9225df9667000951da9d5e36bdf067afe376.tar.gz
Completely remove @question inst var from HighLine objects
... and fix tests accordling. Removing unecessary _state_ handling (inst vars) is a step toward a thiner HighLine class. Question shouldn't be a HighLine's _state_ because the **same** HighLine instance could be able to ask several questions. (At the previous code @question was a kind of _current_question_ state. But this is not really necessary currently.)
Diffstat (limited to 'lib/highline/template_renderer.rb')
-rw-r--r--lib/highline/template_renderer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/highline/template_renderer.rb b/lib/highline/template_renderer.rb
index ea43905..5b495f2 100644
--- a/lib/highline/template_renderer.rb
+++ b/lib/highline/template_renderer.rb
@@ -6,7 +6,7 @@ class HighLine
class TemplateRenderer
extend Forwardable
- def_delegators :@highline, :color, :list, :key, :question
+ def_delegators :@highline, :color, :list, :key
def_delegators :@source, :answer_type, :prompt, :header, :answer
attr_reader :template, :source, :highline