Sha256: 5f9d12871c36a18298ba28869cd040496105b88e2a2bdee214f71c84cff07238

Contents?: true

Size: 694 Bytes

Versions: 131

Compression:

Stored size: 694 Bytes

Contents

# frozen_string_literal: true

require 'avm/entries/uri_builder'
require 'eac_config/entry_path'
require 'eac_ruby_utils/core_ext'

module Avm
  module Entries
    module Base
      class UriComponentEntryValue
        class DefaultValue
          enable_method_class
          common_constructor :uri_component_entry_value
          delegate :component_entry_path, :entries_provider, to: :uri_component_entry_value

          def default_value_method_name
            "#{component_entry_path.parts.join('_').variableize}_default_value"
          end

          def result
            entries_provider.if_respond(default_value_method_name)
          end
        end
      end
    end
  end
end

Version data entries

131 entries across 131 versions & 2 rubygems

Version Path
avm-0.80.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.78.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.77.1 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.77.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.76.1 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.76.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.75.2 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.75.1 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.75.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.74.1 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.74.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.79.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.73.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.72.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.78.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.70.1 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.77.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.70.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.76.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.69.1 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb