module Enumerable

Public Instance Methods

part_of?(that) click to toggle source
# File lib/fuby/part_of.rb, line 9
def part_of? that
  count <= that.count and eql_componentwise? that
end
splat() click to toggle source
# File lib/fuby/splat.rb, line 4
def splat
  ::Enumerator.new { |result| each { |sig| result.<< *sig } }
end
to_tok() click to toggle source
# File lib/fuby/to_tok.rb, line 5
def to_tok
  ::Proc.new &method(:[])
end