Class: Sheaf::Stack::RootClass

Inherits:
Sheaf::Stack show all
Defined in:
lib/sheaf/stack.rb

Constant Summary

Constants inherited from Sheaf::Stack

Root, SWYM

Instance Method Summary collapse

Methods inherited from Sheaf::Stack

[], build, #fmap, #initialize, new, #to_a, #to_s

Constructor Details

This class inherits a constructor from Sheaf::Stack

Instance Method Details

#==(other) ⇒ Object



14
15
16
# File 'lib/sheaf/stack.rb', line 14

def ==(other)
  object_id == other.object_id
end

#add(*args, &block) ⇒ Object



6
7
8
# File 'lib/sheaf/stack.rb', line 6

def add(*args, &block)
  Stack.new(*args, &block)
end

#call(*args) {|args| ... } ⇒ Object

Yields:

  • (args)


10
11
12
# File 'lib/sheaf/stack.rb', line 10

def call(*args)
  yield(*args) if block_given?
end

#eachObject



18
# File 'lib/sheaf/stack.rb', line 18

def each; end