Support for string arg on Embedded

This commit is contained in:
Michael Mitchell + Chris Stringer 2013-03-29 14:55:47 -07:00 committed by Jessica Lynn Suttles
parent 0817798de2
commit d11b0f182c
2 changed files with 5 additions and 1 deletions

View file

@ -2,7 +2,7 @@ module Microformats2
module Property
class Embedded < Foundation
def to_s
@to_s ||= @element.inner_html.strip
@to_s ||= string_value || @element.inner_html.strip
end
end
end