Class: Jade::Frontend::TypeChecking::TypeDef

Inherits:
Data
  • Object
show all
Defined in:
lib/jade/frontend/type_checking/definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#constructorsObject (readonly)

Returns the value of attribute constructors

Returns:

  • (Object)

    the current value of constructors



6
7
8
# File 'lib/jade/frontend/type_checking/definition.rb', line 6

def constructors
  @constructors
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/jade/frontend/type_checking/definition.rb', line 6

def name
  @name
end

#type_paramsObject (readonly)

Returns the value of attribute type_params

Returns:

  • (Object)

    the current value of type_params



6
7
8
# File 'lib/jade/frontend/type_checking/definition.rb', line 6

def type_params
  @type_params
end

Instance Method Details

#opaque?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/jade/frontend/type_checking/definition.rb', line 7

def opaque?
  constructors.empty?
end