Class: Memoist::MemoizedMethod

Inherits:
Struct
  • Object
show all
Defined in:
lib/memoist.rb

Instance Attribute Summary collapse

Instance Attribute Details

#arityObject

Returns the value of attribute arity

Returns:

  • (Object)

    the current value of arity



92
93
94
# File 'lib/memoist.rb', line 92

def arity
  @arity
end

#ivarObject

Returns the value of attribute ivar

Returns:

  • (Object)

    the current value of ivar



92
93
94
# File 'lib/memoist.rb', line 92

def ivar
  @ivar
end

#memoized_methodObject

Returns the value of attribute memoized_method

Returns:

  • (Object)

    the current value of memoized_method



92
93
94
# File 'lib/memoist.rb', line 92

def memoized_method
  @memoized_method
end