class Gm::Notepad::InputHandlers::WriteLineHandler
Constants
- NON_EXPANDING_CHARATER
Public Class Methods
handles?(input:)
click to toggle source
# File lib/gm/notepad/input_handlers/write_line_handler.rb, line 8 def self.handles?(input:) true end
Public Instance Methods
after_initialize!()
click to toggle source
# File lib/gm/notepad/input_handlers/write_line_handler.rb, line 12 def after_initialize! if input[0] == NON_EXPANDING_CHARATER input.sub!(/^\!/,'') expand_line = false else expand_line = true end input.render_current_text(to_interactive: true, to_output: true, expand_line: expand_line) end