Sha256: d29556f56a340b7f487415e7a0f2495a9b6bfb4e4fcfc7f24fcaae0d004d67fe

Contents?: true

Size: 591 Bytes

Versions: 46

Compression:

Stored size: 591 Bytes

Contents

# frozen_string_literal: true

require "lutaml/uml/node/base"
require "lutaml/uml/node/has_name"
require "lutaml/uml/node/has_type"

module Lutaml
  module Uml
    module Node
      class Field < Base
        include HasName
        include HasType

        def initialize(attributes = {})
          @access = "public"

          super
        end

        attr_reader :static

        def static=(value)
          @static = !!value
        end

        attr_reader :access

        def access=(value)
          @access = value.to_s # TODO: Validate?
        end
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
lutaml-0.9.25 lib/lutaml/uml/node/field.rb
lutaml-0.9.24 lib/lutaml/uml/node/field.rb
lutaml-0.9.23 lib/lutaml/uml/node/field.rb
lutaml-0.9.22 lib/lutaml/uml/node/field.rb
lutaml-0.9.21 lib/lutaml/uml/node/field.rb
lutaml-0.9.20 lib/lutaml/uml/node/field.rb
lutaml-0.9.19 lib/lutaml/uml/node/field.rb
lutaml-0.9.18 lib/lutaml/uml/node/field.rb
lutaml-0.9.17 lib/lutaml/uml/node/field.rb
lutaml-0.9.16 lib/lutaml/uml/node/field.rb
lutaml-0.9.15 lib/lutaml/uml/node/field.rb
lutaml-0.9.14 lib/lutaml/uml/node/field.rb
lutaml-0.9.13 lib/lutaml/uml/node/field.rb
lutaml-0.9.12 lib/lutaml/uml/node/field.rb
lutaml-0.9.11 lib/lutaml/uml/node/field.rb
lutaml-0.9.10 lib/lutaml/uml/node/field.rb
lutaml-0.9.9 lib/lutaml/uml/node/field.rb
lutaml-0.9.8 lib/lutaml/uml/node/field.rb
lutaml-0.9.7 lib/lutaml/uml/node/field.rb
lutaml-0.9.6 lib/lutaml/uml/node/field.rb