Sha256: 4e42ff5a125d8a7b03fa7294a1c7874c676bfce72db4d27c0bb500bab0a13c77
Contents?: true
Size: 917 Bytes
Versions: 35
Compression:
Stored size: 917 Bytes
Contents
module Expressir module Model module Statements class Repeat < ModelElement include Identifier attr_accessor :bound1 attr_accessor :bound2 attr_accessor :increment attr_accessor :while_expression attr_accessor :until_expression attr_accessor :statements def initialize(options = {}) @id = options[:id] @remarks = options.fetch(:remarks, []) @source = options[:source] @bound1 = options[:bound1] @bound2 = options[:bound2] @increment = options[:increment] @while_expression = options[:while_expression] @until_expression = options[:until_expression] @statements = options.fetch(:statements, []) super end def children items = [] items.push(self) items end end end end end
Version data entries
35 entries across 35 versions & 1 rubygems