Sha256: 3b595032573209920885154a3395363a5390cc42e63dad60e96fb8ecb7adda64
Contents?: true
Size: 738 Bytes
Versions: 7
Compression:
Stored size: 738 Bytes
Contents
module Coco module BaseHelper def coco_tag(*args, **kwargs, &block) render Coco::Tag.new(*args, **kwargs), &block end def coco_image(src = nil, **kwargs) render Coco::Image.new(src: src, **kwargs) end def coco_icon(icon_name = nil, **kwargs, &block) render Coco::Icon.new(name: icon_name, **kwargs), &block end def coco_embed(platform, url = nil, **kwargs) case platform when :youtube render Coco::Embeds::Youtube.new(url: url, **kwargs) else raise ArgumentError, "`#{platform}` is not a valid embed type" end end def coco_placeholder(*args, **kwargs, &block) render Coco::Placeholder.new(*args, **kwargs), &block end end end
Version data entries
7 entries across 7 versions & 1 rubygems