Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redefined attr_writer in console_prompt.rb #73

Open
davebytemfg opened this issue Apr 23, 2021 · 0 comments
Open

redefined attr_writer in console_prompt.rb #73

davebytemfg opened this issue Apr 23, 2021 · 0 comments

Comments

@davebytemfg
Copy link

Now I'm just being pedantic probably because the writer is defined already

      def current_input_str=(str)
diff --git a/dragon/console_prompt.rb b/dragon/console_prompt.rb
index b97bdba..5428254 100644
--- a/dragon/console_prompt.rb
+++ b/dragon/console_prompt.rb
@@ -11,7 +11,8 @@ module GTK
       # ? Can be changed, it was just taken from my editor settings :>
       WORD_LIMITER_CHARS = "`~!@#$%^&*-=+()[]{}\|;:'\",.<>/?_ \t\n\0".chars
 
-      attr_accessor :current_input_str, :font_style, :console_text_width, :last_input_str, :last_input_str_changed
+      attr_accessor :font_style, :console_text_width, :last_input_str, :last_input_str_changed
+      attr_reader :current_input_str
 
       def initialize(font_style:, text_color:, console_text_width:)
         @prompt = '-> '
@@ -71,14 +72,14 @@ module GTK
         return if @cursor_position.zero?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant