Instance_eval block not supplied? [duplicate]
问题 This question already has answers here : Code block passed to each works with brackets but not with 'do'-'end' (ruby) (3 answers) Closed 3 years ago . Does anybody know what's causing this error? I'm trying to make a basic rack application. App.rb => class Cherry class << self def app &block Cherry::Application.new &block end end class Application def initialize &block instance_eval &block end def print_start_message puts "Starting server" end def call env [200, {"Content-type" => "text/plain