Sha256: 0e3192a9118c55c7e5bf0df2fa80ae716f1f17874dff597dd0bc1cc89c3b7665

Contents?: true

Size: 859 Bytes

Versions: 38

Compression:

Stored size: 859 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module Avm
  module ApplicationScms
    class Base
      acts_as_abstract

      class << self
        # @return [String]
        def type_name
          name.gsub(/#{Regexp.quote('::ApplicationScms::Base')}$/, '').demodulize
        end
      end

      # !method initialize(application)
      # @param application [Avm::Application::Base]
      common_constructor :application
      delegate :type_name, to: :class

      # @param path [Pathname]
      # @return [Pathname]
      def assert_main_at(path) # rubocop:disable Lint/UnusedMethodArgument
        raise_abstract_method __method__
      end

      # @return [String]
      def to_s
        "#{type_name}[#{to_s_type_specific}]"
      end

      # @return [String]
      def to_s_type_specific
        ''
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

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