Class: Jade::Symbol::Union

Inherits:
Data
  • Object
show all
Includes:
Base
Defined in:
lib/jade/symbol/union.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Base

#qualified_name

Instance Attribute Details

#decl_spanObject (readonly)

Returns the value of attribute decl_span

Returns:

  • (Object)

    the current value of decl_span



3
4
5
# File 'lib/jade/symbol/union.rb', line 3

def decl_span
  @decl_span
end

#module_nameObject (readonly)

Returns the value of attribute module_name

Returns:

  • (Object)

    the current value of module_name



3
4
5
# File 'lib/jade/symbol/union.rb', line 3

def module_name
  @module_name
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



3
4
5
# File 'lib/jade/symbol/union.rb', line 3

def name
  @name
end

#type_paramsObject (readonly)

Returns the value of attribute type_params

Returns:

  • (Object)

    the current value of type_params



3
4
5
# File 'lib/jade/symbol/union.rb', line 3

def type_params
  @type_params
end

#variantsObject (readonly)

Returns the value of attribute variants

Returns:

  • (Object)

    the current value of variants



3
4
5
# File 'lib/jade/symbol/union.rb', line 3

def variants
  @variants
end

Instance Method Details

#constructor_refsObject



10
11
12
# File 'lib/jade/symbol/union.rb', line 10

def constructor_refs
  variants
end

#to_refObject



6
7
8
# File 'lib/jade/symbol/union.rb', line 6

def to_ref
  TypeRef[module_name, name]
end