Module: Card::Set::Right::Script::HtmlFormat

Extended by:
AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod019-script/right/script.rb

Instance Method Summary collapse

Instance Method Details

#raw_help_textObject



21
22
23
# File 'platypus/tmp/set/gem-defaults/mod019-script/right/script.rb', line 21

def raw_help_text
  "JavaScript (or CoffeeScript) for card's page."
end

#view: javascript_include_tagObject



15
16
17
18
19
# File 'platypus/tmp/set/gem-defaults/mod019-script/right/script.rb', line 15

view :javascript_include_tag, cache: :never do
  card.item_cards.map do |script|
    script.format(:html).render :javascript_include_tag
  end
end