Sha256: 7e84517018acb096d1148536aab5de164c0971592eb3a8e1a7e5b5c7649528e0
Contents?: true
Size: 848 Bytes
Versions: 21
Compression:
Stored size: 848 Bytes
Contents
module Expressir module Model class Type < ModelElement include Identifier model_attr_accessor :type model_attr_accessor :where model_attr_accessor :informal_propositions def initialize(options = {}) @id = options[:id] @remarks = options.fetch(:remarks, []) @remark_items = options.fetch(:remark_items, []) @source = options[:source] @type = options[:type] @where = options.fetch(:where, []) @informal_propositions = options.fetch(:informal_propositions, []) super end def enumeration_items type.is_a?(Types::Enumeration) ? type.items : [] end def children [ *enumeration_items, *where, *informal_propositions, *remark_items ] end end end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
expressir-0.2.24-arm64-darwin | lib/expressir/model/type.rb |