class Stacks::Items::Proc
Public Class Methods
new(identifier, proc)
click to toggle source
# File lib/stacks/items/proc.rb, line 3 def initialize(identifier, proc) @identifier = identifier @proc = proc end
Public Instance Methods
key()
click to toggle source
# File lib/stacks/items/proc.rb, line 8 def key @key ||= @identifier end
value()
click to toggle source
# File lib/stacks/items/proc.rb, line 12 def value @proc.call end