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



10
11
12
# File 'lib/rbs/ast/declarations.rb', line 10

def name
  @name
end

#skip_validationObject

Returns the value of attribute skip_validation

Returns:

  • (Object)

    the current value of skip_validation



10
11
12
# File 'lib/rbs/ast/declarations.rb', line 10

def skip_validation
  @skip_validation
end

#varianceObject

Returns the value of attribute variance

Returns:

  • (Object)

    the current value of variance



10
11
12
# File 'lib/rbs/ast/declarations.rb', line 10

def variance
  @variance
end

Instance Method Details

#to_json(*a) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/rbs/ast/declarations.rb', line 11

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