From 1c6206c3cd10703679466db3769904d1710ec8cf Mon Sep 17 00:00:00 2001 From: Bill Niblock Date: Sat, 13 May 2017 19:43:48 -0400 Subject: [PATCH] dialogue.rb: Move assignments into initialize --- lib/sapling/dialogue.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sapling/dialogue.rb b/lib/sapling/dialogue.rb index 6de064c..641b4f1 100644 --- a/lib/sapling/dialogue.rb +++ b/lib/sapling/dialogue.rb @@ -9,9 +9,9 @@ module Dialogue # Status of verbose/debug mode. True = on; false = off. attr_accessor :debug - def initialize - @file = "" - @debug = false + def initialize(file="", debug=false) + @file = file + @debug = debug end # Conversation handles navigating the tree, until the option to end is