module Symbiont module Generators # This method allows for a url_is() method in definitions that will # define a direct means of accessing a resource. The most common # example will be a URL for a web page, but any URI is valid. The # URL provided can be navigated to using the generated view() method # on a definition instance. # # @param [String] url the resource identifier to access # @return [Nil] def url_is(url) define_method("view") do @platform.visit(url) end end end # module: Generators end # module: Symbiont