Class: LIT::Parser::AST::TypeDeclarationStatement::Enum

Inherits:
Struct
  • Object
show all
Defined in:
lib/lit/parser/ast.rb

Overview

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name


18
19
20
# File 'lib/lit/parser/ast.rb', line 18

def name
  @name
end

#variantsObject

Returns the value of attribute variants

Returns:

  • (Object)

    the current value of variants


18
19
20
# File 'lib/lit/parser/ast.rb', line 18

def variants
  @variants
end