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



102
103
104
# File 'lib/memoist.rb', line 102

def arity
  @arity
end

#ivarObject

Returns the value of attribute ivar

Returns:

  • (Object)

    the current value of ivar



102
103
104
# File 'lib/memoist.rb', line 102

def ivar
  @ivar
end

#memoized_methodObject

Returns the value of attribute memoized_method

Returns:

  • (Object)

    the current value of memoized_method



102
103
104
# File 'lib/memoist.rb', line 102

def memoized_method
  @memoized_method
end