Sha256: a3c7e3386c05e428695beceec01d599e59a9375aa41eadd8cfe405ff71fdfc57

Contents?: true

Size: 605 Bytes

Versions: 1

Compression:

Stored size: 605 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
symbiont-0.0.1 lib/symbiont/generators.rb