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.75.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.69.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.74.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.68.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.73.1 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.67.1 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.73.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.67.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.72.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.66.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.65.1 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.71.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.65.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.70.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.64.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.69.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.63.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.62.1 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb
avm-0.68.0 lib/avm/entries/base/uri_component_entry_value/default_value.rb
eac_tools-0.62.0 sub/avm/lib/avm/entries/base/uri_component_entry_value/default_value.rb