Skip to content

Instantly share code, notes, and snippets.

@paulcsmith

paulcsmith/.cr Secret

Last active January 13, 2017 20:28
Show Gist options
  • Save paulcsmith/ef45dc689f44881ca0b7eeeb555edef4 to your computer and use it in GitHub Desktop.
Save paulcsmith/ef45dc689f44881ca0b7eeeb555edef4 to your computer and use it in GitHub Desktop.
# in spec/lucky_web/html_view_spec.cr:17: no argument named 'class'
# Matches are:
# - LuckyWeb::HTMLView#h6(content, options)
# - LuckyWeb::HTMLView#h6(content : String)
# - LuckyWeb::HTMLView#h6(content, **options)
# - LuckyWeb::HTMLView#h6(options, &block)
# - LuckyWeb::HTMLView#h6(&block) (trying this one) # Why would it try this one if it has two arguments?
# This doesn't work
h6(class: "h6") do
# ...removed
end
# All the following styles work with the overload above
h6 "h6"
h6 "h6", class: "class"
h6({class: "h6!!!!"}) do
# removed
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment