Codebase list ohcount / d4c3f612-6685-4dc0-9339-5433a0a275c0/main test / expected_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

crystal	comment	#comment
crystal	comment	  # comment with "string"
crystal	blank	
crystal	code	class Rest
crystal	code	  def one
crystal	code	    two do |c|
crystal	code	      puts c
crystal	code	    end
crystal	code	  end
crystal	blank	
crystal	code	  def two(&block : Int32 -> _)
crystal	code	    three { |x| yield x }       # yield is faster than passing blocks.
crystal	code	  end
crystal	blank	
crystal	code	  def three
crystal	code	    yield 3
crystal	code	  end
crystal	code	end
crystal	blank	
crystal	code	Rest.new.one