class Gm::Notepad::InputHandlers::CommentHandler

Constants

COMMENT_PREFIX

Public Class Methods

handles?(input:) click to toggle source
# File lib/gm/notepad/input_handlers/comment_handler.rb, line 8
def self.handles?(input:)
  return false unless input.match(/^#/)
  true
end

Public Instance Methods

after_initialize!() click to toggle source
# File lib/gm/notepad/input_handlers/comment_handler.rb, line 13
def after_initialize!
  input.render_current_text(
    to_interactive: true,
    to_output: false,
    expand_line: false
  )
end