Class: KeepYourHead::Database::Style
- Inherits:
-
Object
- Object
- KeepYourHead::Database::Style
- Defined in:
- lib/Keepyourhead/style/Style.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
- #content(type, flashcard, width, previewCode) ⇒ Object
- #createImage(type, flashcard, width, previewCode) ⇒ Object
-
#initialize(file) ⇒ Style
constructor
A new instance of Style.
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 |