class Vte::Loader - vte3-3.1.1 Documentation

# class Vte::Loader

### Private Instance Methods

define_version_module() click to toggle source

    # File lib/vte3/loader.rb, line 34
    def define_version_module
      @version_module = Module.new
      @base_module.const_set("Version", @version_module)
    end

load_constant_info(info) click to toggle source
Calls superclass method

    # File lib/vte3/loader.rb, line 51
    def load_constant_info(info)
      case info.name
      when /_VERSION\z/
        @version_module.const_set($PREMATCH, info.value)
      else
        super
      end
    end

load_function_info(info) click to toggle source
Calls superclass method

    # File lib/vte3/loader.rb, line 20
    def load_function_info(info)
      name = info.name
      case name
      when "init"
        # ignore
      else
        super
      end
    end

post_load(repository, namespace) click to toggle source

    # File lib/vte3/loader.rb, line 39
    def post_load(repository, namespace)
      require_libraries
    end

pre_load(repository, namespace) click to toggle source

    # File lib/vte3/loader.rb, line 30
    def pre_load(repository, namespace)
      define_version_module
    end

require_libraries() click to toggle source

    # File lib/vte3/loader.rb, line 43
    def require_libraries
      require "vte3/pty"
      require "vte3/terminal"
      require "vte3/version"

      require "vte3/deprecated"
    end