Codebase list ohcount / d4c3f612-6685-4dc0-9339-5433a0a275c0/main test / src_dir / standard_crystal.cr
d4c3f612-6685-4dc0-9339-5433a0a275c0/main

Tree @d4c3f612-6685-4dc0-9339-5433a0a275c0/main (Download .tar.gz)

standard_crystal.cr @d4c3f612-6685-4dc0-9339-5433a0a275c0/mainraw · history · blame

#comment
  # comment with "string"

class Rest
  def one
    two do |c|
      puts c
    end
  end

  def two(&block : Int32 -> _)
    three { |x| yield x }       # yield is faster than passing blocks.
  end

  def three
    yield 3
  end
end

Rest.new.one