Sha256: 3d77e3cffded82f6b3b5b4278a40fa3db7de89f9f3ffb784606bf0bdb95e7f66

Contents?: true

Size: 373 Bytes

Versions: 3

Compression:

Stored size: 373 Bytes

Contents

module Xdrgen::AST
  module Definitions
    class UnionDefaultArm < Base
      extend Memoist
      include Concerns::Contained
      
      delegate :name, to: :declaration
      delegate :type, to: :declaration

      memoize def union
        find_ancestors(Union).last
      end

      def void?
        declaration.is_a?(Declarations::Void)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xdrgen-0.1.1 lib/xdrgen/ast/definitions/union_default_arm.rb
xdrgen-0.1.0 lib/xdrgen/ast/definitions/union_default_arm.rb
xdrgen-0.0.1 lib/xdrgen/ast/definitions/union_default_arm.rb