Module: Mobiledoc::ImageCard
- Defined in:
- lib/mobiledoc/cards/image.rb
Class Method Summary collapse
Class Method Details
.name ⇒ Object
5 6 7 |
# File 'lib/mobiledoc/cards/image.rb', line 5 def name 'image-card' end |
.render(env, payload, options) ⇒ Object
13 14 15 16 17 |
# File 'lib/mobiledoc/cards/image.rb', line 13 def render(env, payload, ) if payload['src'] %Q[<img src="#{payload['src']}">] end end |
.type ⇒ Object
9 10 11 |
# File 'lib/mobiledoc/cards/image.rb', line 9 def type 'html' end |