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

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

Defined Under Namespace

Classes: Method

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location:, name:, params:, methods:) ⇒ Interface

Returns a new instance of Interface.



22
23
24
25
26
27
# File 'lib/steep/ast/signature/interface.rb', line 22

def initialize(location:, name:, params:, methods:)
  @location = location
  @name = name
  @params = params
  @methods = methods
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



17
18
19
# File 'lib/steep/ast/signature/interface.rb', line 17

def location
  @location
end

#methodsObject (readonly)

Returns the value of attribute methods.



20
21
22
# File 'lib/steep/ast/signature/interface.rb', line 20

def methods
  @methods
end

#nameObject (readonly)

Returns the value of attribute name.



18
19
20
# File 'lib/steep/ast/signature/interface.rb', line 18

def name
  @name
end

#paramsObject (readonly)

Returns the value of attribute params.



19
20
21
# File 'lib/steep/ast/signature/interface.rb', line 19

def params
  @params
end