class Shipyard::Jekyll::Box
Public Class Methods
new(tag_name, types, options)
click to toggle source
Calls superclass method
# File lib/shipyard-framework/jekyll/tags/box_tag.rb, line 8 def initialize(tag_name, types, options) super @types = [] types.tr(' ','').split(',').each do |type| @types << type.tr(':','').tr('_','-').to_sym end end
Public Instance Methods
render(context)
click to toggle source
Calls superclass method
# File lib/shipyard-framework/jekyll/tags/box_tag.rb, line 16 def render(context) box(@types) { raw(super.strip) } end