Why can’t I do this?
class Service
Request.new
end
class Request
end
Why can’t I do this?
class Service
Request.new
end
class Request
end
Alle martedì 20 novembre 2007, eggie5 ha scritto:
Why can’t I do this?
class Service
Request.new
endclass Request
end
Because the body of the class is executed as soon as it is read, that
is,
before class Request is defined.
Stefano
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs