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

#abstractObject

Returns the value of attribute abstract

Returns:

  • (Object)

    the current value of abstract



51
52
53
# File 'lib/types/private/methods/_methods.rb', line 51

def abstract
  @abstract
end

#blk_or_declObject

Returns the value of attribute blk_or_decl

Returns:

  • (Object)

    the current value of blk_or_decl



51
52
53
# File 'lib/types/private/methods/_methods.rb', line 51

def blk_or_decl
  @blk_or_decl
end

#finalObject

Returns the value of attribute final

Returns:

  • (Object)

    the current value of final



51
52
53
# File 'lib/types/private/methods/_methods.rb', line 51

def final
  @final
end

#locObject

Returns the value of attribute loc

Returns:

  • (Object)

    the current value of loc



51
52
53
# File 'lib/types/private/methods/_methods.rb', line 51

def loc
  @loc
end

#method_nameObject

Returns the value of attribute method_name

Returns:

  • (Object)

    the current value of method_name



51
52
53
# File 'lib/types/private/methods/_methods.rb', line 51

def method_name
  @method_name
end

#modObject

Returns the value of attribute mod

Returns:

  • (Object)

    the current value of mod



51
52
53
# File 'lib/types/private/methods/_methods.rb', line 51

def mod
  @mod
end

#overridableObject

Returns the value of attribute overridable

Returns:

  • (Object)

    the current value of overridable



51
52
53
# File 'lib/types/private/methods/_methods.rb', line 51

def overridable
  @overridable
end

#overrideObject

Returns the value of attribute override

Returns:

  • (Object)

    the current value of override



51
52
53
# File 'lib/types/private/methods/_methods.rb', line 51

def override
  @override
end