Sha256: 3898e3c9a407040caecc49b44db8a3e77cd51f1f1dfc2952c1100104b89f0e5f

Contents?: true

Size: 518 Bytes

Versions: 9

Compression:

Stored size: 518 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_base0/application'
require 'eac_ruby_utils/require_sub'
require 'avm/instances/base'

module Avm
  module Self
    ::EacRubyUtils.require_sub(__FILE__)

    class << self
      def application
        @application ||= ::EacRubyBase0::Application.new(root.to_path)
      end

      def instance
        @instance ||= ::Avm::Self::Instance.by_id('avm-tools_self')
      end

      def root
        ::Pathname.new('../..').expand_path(__dir__)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
avm-tools-0.70.0 lib/avm/self.rb
avm-tools-0.69.3 lib/avm/self.rb
avm-tools-0.69.2 lib/avm/self.rb
avm-tools-0.69.1 lib/avm/self.rb
avm-tools-0.69.0 lib/avm/self.rb
avm-tools-0.68.0 lib/avm/self.rb
avm-tools-0.67.0 lib/avm/self.rb
avm-tools-0.66.0 lib/avm/self.rb
avm-tools-0.65.0 lib/avm/self.rb