Class: RBS::AST::Declarations::ModuleTypeParams::TypeParam

Inherits:
Struct
  • Object
show all
Defined in:
lib/rbs/ast/declarations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



7
8
9
# File 'lib/rbs/ast/declarations.rb', line 7

def name
  @name
end

#skip_validationObject

Returns the value of attribute skip_validation

Returns:

  • (Object)

    the current value of skip_validation



7
8
9
# File 'lib/rbs/ast/declarations.rb', line 7

def skip_validation
  @skip_validation
end

#varianceObject

Returns the value of attribute variance

Returns:

  • (Object)

    the current value of variance



7
8
9
# File 'lib/rbs/ast/declarations.rb', line 7

def variance
  @variance
end

Instance Method Details

#to_json(*a) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/rbs/ast/declarations.rb', line 8

def to_json(*a)
  {
    name: name,
    variance: variance,
    skip_validation: skip_validation,
  }.to_json(*a)
end