Sha256: dceb0976b57774dacfa7929bc2c59803d097f78f598e20a38b19423be70cbdd4
Contents?: true
Size: 728 Bytes
Versions: 14
Compression:
Stored size: 728 Bytes
Contents
module Expressir module Model class Type < ModelElement include Identifier attr_accessor :type attr_accessor :where attr_accessor :informal_propositions def initialize(options = {}) @id = options[:id] @remarks = options.fetch(:remarks, []) @source = options[:source] @type = options[:type] @where = options.fetch(:where, []) @informal_propositions = options.fetch(:informal_propositions, []) super end def children items = [] items.push(*@type.is_a?(Types::Enumeration) ? @type.items : []) items.push(*@where) items.push(*@informal_propositions) items end end end end
Version data entries
14 entries across 14 versions & 1 rubygems