Class: Steep::AST::Signature::Interface::Method

Inherits:
Object
  • Object
show all
Defined in:
lib/steep/ast/signature/interface.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location:, name:, types:) ⇒ Method

Returns a new instance of Method.



10
11
12
13
14
# File 'lib/steep/ast/signature/interface.rb', line 10

def initialize(location:, name:, types:)
  @location = location
  @name = name
  @types = types
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



6
7
8
# File 'lib/steep/ast/signature/interface.rb', line 6

def location
  @location
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/steep/ast/signature/interface.rb', line 7

def name
  @name
end

#typesObject (readonly)

Returns the value of attribute types.



8
9
10
# File 'lib/steep/ast/signature/interface.rb', line 8

def types
  @types
end