Class: KeepYourHead::Database::Style

Inherits:
Object
  • Object
show all
Defined in:
lib/Keepyourhead/style/Style.rb

Direct Known Subclasses

StyleLatex

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ Style

Returns a new instance of Style.



24
25
# File 'lib/Keepyourhead/style/Style.rb', line 24

def initialize(file)
end

Class Method Details

.addStyle(s) ⇒ Object



36
37
38
39
# File 'lib/Keepyourhead/style/Style.rb', line 36

def self.addStyle( s )
  $styles ||= {}
  $styles[s.Name] = s
end

.getStyle(name) ⇒ Object



41
42
43
# File 'lib/Keepyourhead/style/Style.rb', line 41

def self.getStyle(name)
  $styles[name]
end

Instance Method Details

#content(type, flashcard, width, previewCode) ⇒ Object



30
31
# File 'lib/Keepyourhead/style/Style.rb', line 30

def content( type, flashcard, width, previewCode )
end

#createImage(type, flashcard, width, previewCode) ⇒ Object



27
28
# File 'lib/Keepyourhead/style/Style.rb', line 27

def createImage( type, flashcard, width, previewCode )
end