Sha256: d127a4bf40fe758c52298d03e302e1498f4b1e0ec58b357ad6eecefc3735251a

Contents?: true

Size: 591 Bytes

Versions: 5

Compression:

Stored size: 591 Bytes

Contents

include_set Abstract::Pointer

def ok_to_read
  true
end

def refresh_output force: false
  item_cards.each do |item_card|
    # puts "refreshing #{item_card.name}".yellow
    item_card.try :refresh_output, force: force
  end
end

def regenerate_machine_output
  item_cards.each do |item_card|
    item_card.try :regenerate_machine_output
  end
end

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
card-mod-script-0.13.4 set/right/script.rb
card-mod-script-0.13.3 set/right/script.rb
card-mod-script-0.13.2 set/right/script.rb
card-mod-script-0.13.1 set/right/script.rb
card-mod-script-0.13.0 set/right/script.rb