Sha256: 2bfe42596ee89a872360643a3948ac3529010be78112e5d902c9d585111bd957

Contents?: true

Size: 547 Bytes

Versions: 14

Compression:

Stored size: 547 Bytes

Contents

module Expressir
  module Model
    class Constant < ModelElement
      include Identifier

      model_attr_accessor :type
      model_attr_accessor :expression

      def initialize(options = {})
        @id = options[:id]
        @remarks = options[:remarks] || []
        @remark_items = options[:remark_items] || []
        @source = options[:source]

        @type = options[:type]
        @expression = options[:expression]

        super
      end

      def children
        [
          *remark_items
        ]
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
expressir-1.0.0 lib/expressir/model/constant.rb
expressir-1.0.0-x86_64-linux lib/expressir/model/constant.rb
expressir-1.0.0-x86_64-darwin lib/expressir/model/constant.rb
expressir-1.0.0-x86-mingw32 lib/expressir/model/constant.rb
expressir-1.0.0-x86-linux lib/expressir/model/constant.rb
expressir-1.0.0-x64-mingw32 lib/expressir/model/constant.rb
expressir-1.0.0-arm64-darwin lib/expressir/model/constant.rb
expressir-0.2.27 lib/expressir/model/constant.rb
expressir-0.2.27-x86_64-linux lib/expressir/model/constant.rb
expressir-0.2.27-x86_64-darwin lib/expressir/model/constant.rb
expressir-0.2.27-x86-mingw32 lib/expressir/model/constant.rb
expressir-0.2.27-x86-linux lib/expressir/model/constant.rb
expressir-0.2.27-x64-mingw32 lib/expressir/model/constant.rb
expressir-0.2.27-arm64-darwin lib/expressir/model/constant.rb