class Maybe

Public Instance Methods

==(other) click to toggle source
# File lib/possibly.rb, line 16
def ==(other)
  other.class == self.class
end
Also aliased as: eql?
eql?(other)
Alias for: ==
inspect() click to toggle source
# File lib/possibly.rb, line 21
def inspect
  to_s
end
to_a()
Alias for: to_ary
to_ary() click to toggle source
# File lib/possibly.rb, line 11
def to_ary
  __enumerable_value
end
Also aliased as: to_a

Protected Instance Methods

inst_method() click to toggle source
# File lib/possibly.rb, line 55
def inst_method
  "#{print_method(@inst_method)}"
end
print_error(msg) click to toggle source
print_method(invocation) click to toggle source
print_stack() click to toggle source
self_stack() click to toggle source
# File lib/possibly.rb, line 50
def self_stack
  [inst_method, self.inspect]
end
stack() click to toggle source
# File lib/possibly.rb, line 46
def stack
  @parent_stack + [self_stack]
end