class Botz::Console

botz console

Attributes

definition_file[R]

Public Class Methods

new(definition_file = nil) click to toggle source
# File lib/botz/console.rb, line 10
def initialize(definition_file = nil)
  @definition_file = definition_file
end

Public Instance Methods

open(filepath) click to toggle source
# File lib/botz/console.rb, line 14
def open(filepath)
  @definition_file = Botz::DefinitionFile.open(filepath)
end
reload!() click to toggle source
# File lib/botz/console.rb, line 18
def reload!
  @definition_file&.eval_definition
end