Created
December 18, 2021 17:10
-
-
Save kjlape/472bd284c6febf39fe06b3f6ba30dcc6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RawQueryParam < SimpleDelegator | |
def to_query(key) | |
"#{key}=#{value}" | |
end | |
end | |
# … | |
whatever_url(@whatever, host: "bogus.dev", blah: RawQueryParam.new("{test}")) | |
# => "http://bogus.dev/whatever?blah={test}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment