Sha256: 644be6940218cfda717591e74193c3c45e65b186df498882207435c67e052299
Contents?: true
Size: 528 Bytes
Versions: 2
Compression:
Stored size: 528 Bytes
Contents
module Mill class Resource class Redirect < Resource attr_accessor :redirect_uri attr_accessor :redirect_code def initialize(redirect_uri:, redirect_code: 303, **args) @redirect_uri = redirect_uri @redirect_code = redirect_code super(**args) end def load @content = "%s %d" % [@redirect_uri, @redirect_code] super end def save @output_file = @output_file.add_extension('.redirect') super end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mill-0.4 | lib/mill/resources/redirect.rb |
mill-0.3 | lib/mill/resources/redirect.rb |