Sha256: a5203acf7f466123e8c78a8ee12b2eed1bf88ecc4a03c03bc1f85e1e34a4d132

Contents?: true

Size: 298 Bytes

Versions: 14

Compression:

Stored size: 298 Bytes

Contents

module GOVUKDesignSystemFormBuilder
  module Traits
    module CollectionItem
    private

      def retrieve(item, method)
        case method
        when Symbol, String
          item.send(method)
        when Proc
          capture { method.call(item) }
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
govuk_design_system_formbuilder-2.1.7b1 lib/govuk_design_system_formbuilder/traits/collection_item.rb
govuk_design_system_formbuilder-2.1.6 lib/govuk_design_system_formbuilder/traits/collection_item.rb
govuk_design_system_formbuilder-2.1.5 lib/govuk_design_system_formbuilder/traits/collection_item.rb
govuk_design_system_formbuilder-2.1.4 lib/govuk_design_system_formbuilder/traits/collection_item.rb
govuk_design_system_formbuilder-2.1.3 lib/govuk_design_system_formbuilder/traits/collection_item.rb
govuk_design_system_formbuilder-2.1.2 lib/govuk_design_system_formbuilder/traits/collection_item.rb
govuk_design_system_formbuilder-2.1.1 lib/govuk_design_system_formbuilder/traits/collection_item.rb
govuk_design_system_formbuilder-2.1.0 lib/govuk_design_system_formbuilder/traits/collection_item.rb
govuk_design_system_formbuilder-2.0.0 lib/govuk_design_system_formbuilder/traits/collection_item.rb
govuk_design_system_formbuilder-2.0.0b4 lib/govuk_design_system_formbuilder/traits/collection_item.rb
govuk_design_system_formbuilder-1.2.9 lib/govuk_design_system_formbuilder/traits/collection_item.rb
govuk_design_system_formbuilder-2.0.0b3 lib/govuk_design_system_formbuilder/traits/collection_item.rb
govuk_design_system_formbuilder-2.0.0b2 lib/govuk_design_system_formbuilder/traits/collection_item.rb
govuk_design_system_formbuilder-2.0.0b1 lib/govuk_design_system_formbuilder/traits/collection_item.rb