Sha256: 407ff90ba2ba38f6b2083459c809de41f1c40db5db67d289396eac680a03e48e
Contents?: true
Size: 1.43 KB
Versions: 14
Compression:
Stored size: 1.43 KB
Contents
module Expressir module Model class Procedure < ModelElement include Identifier attr_accessor :parameters attr_accessor :types attr_accessor :entities attr_accessor :subtype_constraints attr_accessor :functions attr_accessor :procedures attr_accessor :constants attr_accessor :variables attr_accessor :statements def initialize(options = {}) @id = options[:id] @remarks = options.fetch(:remarks, []) @source = options[:source] @parameters = options.fetch(:parameters, []) @types = options.fetch(:types, []) @entities = options.fetch(:entities, []) @subtype_constraints = options.fetch(:subtype_constraints, []) @functions = options.fetch(:functions, []) @procedures = options.fetch(:procedures, []) @constants = options.fetch(:constants, []) @variables = options.fetch(:variables, []) @statements = options.fetch(:statements, []) super end def children items = [] items.push(*@parameters) items.push(*@types) items.push(*@types.flat_map{|x| x.type.is_a?(Types::Enumeration) ? x.type.items : []}) items.push(*@entities) items.push(*@subtype_constraints) items.push(*@functions) items.push(*@procedures) items.push(*@constants) items.push(*@variables) items end end end end
Version data entries
14 entries across 14 versions & 1 rubygems