Class: T::Private::Methods::DeclarationBlock

Inherits:
Struct
  • Object
show all
Defined in:
lib/types/private/methods/_methods.rb

Overview

blk_or_decl:

  • It’s a ‘Proc` if we haven’t forced the thunk yet.

  • It’s a ‘Declaration` if we have, but we haven’t finished building the sig (This can matter for circular load-time behavior, where a method is called while its Signature is being built)

  • It’s ‘nil` if we’ve finished building the sig

Instance Attribute Summary collapse

Instance Attribute Details

#blk_or_declObject

Returns the value of attribute blk_or_decl

Returns:

  • (Object)

    the current value of blk_or_decl



43
44
45
# File 'lib/types/private/methods/_methods.rb', line 43

def blk_or_decl
  @blk_or_decl
end

#finalObject

Returns the value of attribute final

Returns:

  • (Object)

    the current value of final



43
44
45
# File 'lib/types/private/methods/_methods.rb', line 43

def final
  @final
end

#locObject

Returns the value of attribute loc

Returns:

  • (Object)

    the current value of loc



43
44
45
# File 'lib/types/private/methods/_methods.rb', line 43

def loc
  @loc
end

#modObject

Returns the value of attribute mod

Returns:

  • (Object)

    the current value of mod



43
44
45
# File 'lib/types/private/methods/_methods.rb', line 43

def mod
  @mod
end

#rawObject

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



43
44
45
# File 'lib/types/private/methods/_methods.rb', line 43

def raw
  @raw
end