Sha256: 13c23b579b26b8f15a2308e1defabe8b4d6ad33207963cd5666ae0d822821b70

Contents?: true

Size: 664 Bytes

Versions: 38

Compression:

Stored size: 664 Bytes

Contents

# frozen_string_literal: true

require 'eac_config/node'
require 'eac_ruby_utils/core_ext'

module Avm
  module Entries
    module AutoValues
      class Entry
        class << self
          def auto_value_method_name(suffix)
            "auto_#{suffix.to_s.gsub('.', '_')}"
          end
        end

        common_constructor :entries_provider, :suffix

        def auto_value_method
          self.class.auto_value_method_name(suffix)
        end

        def found?
          entries_provider.respond_to?(auto_value_method, true)
        end

        def value
          entries_provider.if_respond(auto_value_method)
        end
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
avm-0.44.0 lib/avm/entries/auto_values/entry.rb
eac_tools-0.31.1 sub/avm/lib/avm/entries/auto_values/entry.rb
eac_tools-0.31.0 sub/avm/lib/avm/entries/auto_values/entry.rb
eac_tools-0.30.0 sub/avm/lib/avm/entries/auto_values/entry.rb
avm-0.43.0 lib/avm/entries/auto_values/entry.rb
eac_tools-0.29.0 sub/avm/lib/avm/entries/auto_values/entry.rb
avm-0.42.0 lib/avm/entries/auto_values/entry.rb
eac_tools-0.28.0 sub/avm/lib/avm/entries/auto_values/entry.rb
eac_tools-0.27.2 sub/avm/lib/avm/entries/auto_values/entry.rb
avm-0.41.1 lib/avm/entries/auto_values/entry.rb
eac_tools-0.27.1 sub/avm/lib/avm/entries/auto_values/entry.rb
avm-0.41.0 lib/avm/entries/auto_values/entry.rb
eac_tools-0.27.0 sub/avm/lib/avm/entries/auto_values/entry.rb
avm-0.40.0 lib/avm/entries/auto_values/entry.rb
eac_tools-0.26.0 sub/avm/lib/avm/entries/auto_values/entry.rb
avm-0.39.1 lib/avm/entries/auto_values/entry.rb
eac_tools-0.25.1 sub/avm/lib/avm/entries/auto_values/entry.rb
avm-0.39.0 lib/avm/entries/auto_values/entry.rb
eac_tools-0.25.0 sub/avm/lib/avm/entries/auto_values/entry.rb
avm-0.38.0 lib/avm/entries/auto_values/entry.rb