class Anki::CardFace

Attributes

content[RW]
media[RW]

Public Class Methods

new(content) click to toggle source
# File lib/ankirb/anki/card.rb, line 71
def initialize content
  @content = content
  @media = []
end

Public Instance Methods

<<(thing) click to toggle source
# File lib/ankirb/anki/card.rb, line 76
def << thing
  return unless thing and not thing.empty?

  if File.exists?(thing)
    @media << thing
  else
    @content << thing
  end
end
to_s() click to toggle source
# File lib/ankirb/anki/card.rb, line 86
def to_s
  @content
end