Module: KatakataIrb

Defined in:
lib/katakata_irb.rb,
lib/katakata_irb/scope.rb,
lib/katakata_irb/types.rb,
lib/katakata_irb/version.rb

Defined Under Namespace

Modules: Completor, Types Classes: BaseScope, Scope, TypeAnalyzer

Constant Summary collapse

VERSION =
"0.2.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.last_completion_errorObject

Returns the value of attribute last_completion_error.



9
10
11
# File 'lib/katakata_irb.rb', line 9

def last_completion_error
  @last_completion_error
end

.log_outputObject

Returns the value of attribute log_output.



9
10
11
# File 'lib/katakata_irb.rb', line 9

def log_output
  @log_output
end

Class Method Details

.log_putsObject



10
11
12
13
14
15
16
# File 'lib/katakata_irb.rb', line 10

def log_puts(...)
  if STDOUT.tty?
    STDOUT.cooked { log_output&.puts(...) }
  else
    log_output&.puts(...)
  end
end