Class: Fabulator::TagLib::Presentations

Inherits:
Object
  • Object
show all
Defined in:
lib/fabulator/tag_lib/presentations.rb

Instance Method Summary collapse

Constructor Details

#initializePresentations

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

#interactivesObject



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

#structuralsObject



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_intoObject



10
11
12
# File 'lib/fabulator/tag_lib/presentations.rb', line 10

def transformations_into
  @transformations
end