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
eac_tools-0.55.5 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.64.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.55.4 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.63.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.55.3 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.55.2 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.55.1 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.62.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.55.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.61.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.54.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.53.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.52.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.60.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.51.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.59.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.50.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.58.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.49.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.48.1 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb