class EL_NAMED

(source code)

Client examples: STRUCTURE_EXPERIMENTS

Description

Generic named item assignable from tuple

note
	description: "Generic named item assignable from tuple"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2017 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2020-11-30 9:59:31 GMT (Monday 30th November 2020)"
	revision: "1"

class
	EL_NAMED [G]

inherit
	EL_NAMEABLE [STRING]

create
	make

convert
	make ({TUPLE [STRING, G]})

feature {NONE} -- Initialization

	make (tuple: TUPLE [name: STRING; named_item: G])
		do
			name := tuple.name
			item := tuple.named_item
		end

feature -- Access

	item: G

	name: STRING

end