Class: Steep::Server::TypeCheckWorker::GotoJob

Inherits:
Struct
  • Object
show all
Defined in:
lib/steep/server/type_check_worker.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



17
18
19
# File 'lib/steep/server/type_check_worker.rb', line 17

def id
  @id
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



17
18
19
# File 'lib/steep/server/type_check_worker.rb', line 17

def kind
  @kind
end

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



17
18
19
# File 'lib/steep/server/type_check_worker.rb', line 17

def params
  @params
end

Class Method Details

.definition(id:, params:) ⇒ Object



26
27
28
29
30
31
32
# File 'lib/steep/server/type_check_worker.rb', line 26

def self.definition(id:, params:)
  new(
    kind: :definition,
    id: id,
    params: params
  )
end

.implementation(id:, params:) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/steep/server/type_check_worker.rb', line 18

def self.implementation(id:, params:)
  new(
    kind: :implementation,
    id: id,
    params: params
  )
end

.type_definition(id:, params:) ⇒ Object



34
35
36
37
38
39
40
# File 'lib/steep/server/type_check_worker.rb', line 34

def self.type_definition(id:, params:)
  new(
    kind: :type_definition,
    id: id,
    params: params
  )
end

Instance Method Details

#definition?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/steep/server/type_check_worker.rb', line 46

def definition?
  kind == :definition
end

#implementation?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/steep/server/type_check_worker.rb', line 42

def implementation?
  kind == :implementation
end

#type_definition?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/steep/server/type_check_worker.rb', line 50

def type_definition?
  kind == :type_definition
end