Sha256: 317b953982eb35af28b699cd30442f6042d9ef142b471504551223e21383b370
Contents?: true
Size: 646 Bytes
Versions: 141
Compression:
Stored size: 646 Bytes
Contents
- entity_card = EntityCard.new entity - name = entity.respond_to?(:name)? entity.name || entity : entity - if not entity.respond_to?(:long_name) - if entity.respond_to?(:name) - entity_card.name = [entity.base_type, entity] * ": " - else - entity_card.name = entity.base_type - entity_card.long_name = name - if entity.respond_to? :genes - genes = entity.genes - list_container = ListContainer.new - list_container.add "Genes for #{[entity.base_type, name] * ": "}", genes - entity_card.list_container = list_container - entity_card.action_controller = default_action_controller entity = entity_card_render entity_card
Version data entries
141 entries across 141 versions & 1 rubygems