Sha256: aaaa83797d18886157b4375f2058cb0b603551090ebd41f2f90670bf233c306f

Contents?: true

Size: 593 Bytes

Versions: 34

Compression:

Stored size: 593 Bytes

Contents

# frozen_string_literal: true

require 'avm/sources/base/subs_paths'
require 'eac_ruby_utils/core_ext'

module Avm
  module Sources
    class Base
      class Sub
        # !method initialize(source, sub_path)
        # @param source [Avm::Sources::Base]
        # @param sub_path [Pathname]
        common_constructor :source, :sub_path do
          self.sub_path = sub_path.to_pathname
        end

        # @return [Pathname]
        def absolute_path
          sub_path.expand_path(source.path)
        end

        require_sub __FILE__, require_mode: :kernel
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
avm-0.93.0 lib/avm/sources/base/sub.rb
eac_tools-0.92.0 sub/avm/lib/avm/sources/base/sub.rb
avm-0.92.0 lib/avm/sources/base/sub.rb
eac_tools-0.91.0 sub/avm/lib/avm/sources/base/sub.rb
avm-0.90.1 lib/avm/sources/base/sub.rb
eac_tools-0.87.1 sub/avm/lib/avm/sources/base/sub.rb
avm-0.90.0 lib/avm/sources/base/sub.rb
eac_tools-0.87.0 sub/avm/lib/avm/sources/base/sub.rb
avm-0.89.0 lib/avm/sources/base/sub.rb
eac_tools-0.86.12 sub/avm/lib/avm/sources/base/sub.rb
avm-0.88.0 lib/avm/sources/base/sub.rb
eac_tools-0.86.11 sub/avm/lib/avm/sources/base/sub.rb
avm-0.87.0 lib/avm/sources/base/sub.rb
eac_tools-0.86.8 sub/avm/lib/avm/sources/base/sub.rb
avm-0.86.2 lib/avm/sources/base/sub.rb
eac_tools-0.86.7 sub/avm/lib/avm/sources/base/sub.rb
avm-0.86.1 lib/avm/sources/base/sub.rb
eac_tools-0.86.5 sub/avm/lib/avm/sources/base/sub.rb
avm-0.86.0 lib/avm/sources/base/sub.rb
eac_tools-0.86.4 sub/avm/lib/avm/sources/base/sub.rb