Sha256: d4f74ca833ac24bcd8f020a149e0c3dd9e944d50228b0d54899750668a41e1cf
Contents?: true
Size: 746 Bytes
Versions: 21
Compression:
Stored size: 746 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?(Expressir::Model::Types::Enumeration) ? @type.items : []) items.push(*@where) items.push(*@informal_propositions) items end end end end
Version data entries
21 entries across 21 versions & 1 rubygems