Class: Fabulator::TagLib::Presentations
- Inherits:
-
Object
- Object
- Fabulator::TagLib::Presentations
- Defined in:
- lib/fabulator/tag_lib/presentations.rb
Instance Method Summary collapse
- #get_root_namespaces(fmt) ⇒ Object
-
#initialize ⇒ Presentations
constructor
A new instance of Presentations.
- #interactive(nom) ⇒ Object
- #interactives ⇒ Object
- #structural(nom) ⇒ Object
- #structurals ⇒ Object
- #transform(fmt, doc, opts = { }) ⇒ Object
- #transformations_into ⇒ Object
Constructor Details
#initialize ⇒ Presentations
Returns a new instance of Presentations.
4 5 6 7 8 |
# File 'lib/fabulator/tag_lib/presentations.rb', line 4 def initialize @transformations = Fabulator::TagLib::Transformations.new @interactives = { } @structurals = { } end |
Instance Method Details
#get_root_namespaces(fmt) ⇒ Object
34 35 36 |
# File 'lib/fabulator/tag_lib/presentations.rb', line 34 def get_root_namespaces(fmt) @transformations.get_root_namespaces(fmt) end |
#interactive(nom) ⇒ Object
22 23 24 |
# File 'lib/fabulator/tag_lib/presentations.rb', line 22 def interactive(nom) @interactives[nom.to_sym] = nil end |
#interactives ⇒ Object
14 15 16 |
# File 'lib/fabulator/tag_lib/presentations.rb', line 14 def interactives @interactives.keys end |
#structural(nom) ⇒ Object
26 27 28 |
# File 'lib/fabulator/tag_lib/presentations.rb', line 26 def structural(nom) @structurals[nom.to_sym] = nil end |
#structurals ⇒ Object
18 19 20 |
# File 'lib/fabulator/tag_lib/presentations.rb', line 18 def structurals @structurals.keys end |
#transform(fmt, doc, opts = { }) ⇒ Object
30 31 32 |
# File 'lib/fabulator/tag_lib/presentations.rb', line 30 def transform(fmt, doc, opts = { }) @transformations.transform(fmt, doc, opts) end |
#transformations_into ⇒ Object
10 11 12 |
# File 'lib/fabulator/tag_lib/presentations.rb', line 10 def transformations_into @transformations end |