Class: Hegel::Generators::UrlsGenerator

Inherits:
Hegel::Generator show all
Defined in:
lib/hegel/generators.rb,
sig/hegel.rbs

Overview

Hegel::Syntax::Methods#urls. An RFC 3986 http/https URL String. hegel_string_generator_url takes no arguments, for the same reason EmailsGenerator has no #initialize.

Instance Method Summary collapse

Methods inherited from Hegel::Generator

#filter, #map

Instance Method Details

#do_draw(tc) ⇒ String

Parameters:

  • tc (Object)

Returns:

  • (String)


503
504
505
# File 'lib/hegel/generators.rb', line 503

def do_draw(tc)
  tc.with_url_generator { |generator| tc.generate_string(generator) }
end