Class: Muwu::RenderHtmlPartialBuilder::MetadataBuilder
- Inherits:
-
Object
- Object
- Muwu::RenderHtmlPartialBuilder::MetadataBuilder
show all
- Includes:
- Muwu, Helper
- Defined in:
- lib/muwu/render_html_partial_builder/render_metadata_builder.rb
Constant Summary
Constants included
from Muwu
GEM_HOME_LIB, GEM_HOME_LIB_MUWU, VERSION
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Muwu
debug, read
Constructor Details
23
24
25
|
# File 'lib/muwu/render_html_partial_builder/render_metadata_builder.rb', line 23
def initialize
@renderer = RenderHtmlPartial::Metadata.new
end
|
Instance Attribute Details
Returns the value of attribute manifest_metadata.
10
11
12
|
# File 'lib/muwu/render_html_partial_builder/render_metadata_builder.rb', line 10
def manifest_metadata
@manifest_metadata
end
|
#renderer ⇒ Object
Returns the value of attribute renderer.
10
11
12
|
# File 'lib/muwu/render_html_partial_builder/render_metadata_builder.rb', line 10
def renderer
@renderer
end
|
Class Method Details
.build {|builder| ... } ⇒ Object
16
17
18
19
20
|
# File 'lib/muwu/render_html_partial_builder/render_metadata_builder.rb', line 16
def self.build
builder = new
yield(builder)
builder.renderer
end
|
Instance Method Details
28
29
30
31
32
|
# File 'lib/muwu/render_html_partial_builder/render_metadata_builder.rb', line 28
def build_from_manifest_metadata(metadata)
@metadata = metadata
set_destination
set_metadata
end
|
#set_destination ⇒ Object
35
36
37
|
# File 'lib/muwu/render_html_partial_builder/render_metadata_builder.rb', line 35
def set_destination
@renderer.destination = @metadata.destination
end
|
40
41
42
|
# File 'lib/muwu/render_html_partial_builder/render_metadata_builder.rb', line 40
def set_metadata
@renderer.metadata = SanitizerHelper.sanitize_metadata(@metadata.metadata)
end
|