Class: Psd2html::PsConvertor::BlockLink
- Defined in:
- lib/psd2html/psconvertor/blockLink.rb
Constant Summary
Constants inherited from Convertor
Convertor::CSS_HASH_BASE, Convertor::CSS_TPL, Convertor::HTML_HASH_BASE, Convertor::HTML_TPL
Instance Attribute Summary
Attributes inherited from Convertor
#childrenConvertors, #index, #parentConvertor, #psNode
Instance Method Summary collapse
Methods inherited from Block
Methods inherited from Convertor
#css_map, #css_skeleton, #curleft, #curtop, #get_css_tpl, #get_html_tpl, #initialize, #render_css, #render_html, #sync_css, #sync_html
Constructor Details
This class inherits a constructor from Psd2html::Convertor
Instance Method Details
#guid ⇒ Object
4 5 6 |
# File 'lib/psd2html/psconvertor/blockLink.rb', line 4 def guid "link-" + super end |
#html_skeleton ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/psd2html/psconvertor/blockLink.rb', line 7 def html_skeleton htmlRenderData = { "attributes" => { "class" => "block-#{guid}", "href" => "#" }, "tag" => "a", } htmlRenderData = HTML_HASH_BASE.merge(htmlRenderData) end |