From 04206e40a6ceb19268d43a47346dc75c93c0085d Mon Sep 17 00:00:00 2001 From: Jessica Lynn Suttles Date: Mon, 18 Feb 2013 11:26:33 -0800 Subject: [PATCH] renames ImpliedProperty::Foundation#value to #to_s --- lib/microformats2/implied_property/foundation.rb | 8 ++++---- lib/microformats2/implied_property/name.rb | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/microformats2/implied_property/foundation.rb b/lib/microformats2/implied_property/foundation.rb index 6797d6c..57bf199 100644 --- a/lib/microformats2/implied_property/foundation.rb +++ b/lib/microformats2/implied_property/foundation.rb @@ -7,19 +7,19 @@ module Microformats2 end def parse - self if value + self if to_s end def method_name "foundation" end - def value - @value ||= element_value || selector_value + def to_s + @to_s ||= element_value || selector_value end def to_hash - value.to_s + to_s end def to_json diff --git a/lib/microformats2/implied_property/name.rb b/lib/microformats2/implied_property/name.rb index ac5e508..2b0524d 100644 --- a/lib/microformats2/implied_property/name.rb +++ b/lib/microformats2/implied_property/name.rb @@ -6,8 +6,8 @@ module Microformats2 "name" end - def value - @value ||= element_value || selector_value || text_value + def to_s + @to_s ||= element_value || selector_value || text_value end protected