Class: Microformats2::ImpliedProperty::Name

Inherits:
Foundation
  • Object
show all
Defined in:
lib/microformats2/implied_property/name.rb

Instance Method Summary collapse

Methods inherited from Foundation

#initialize, #parse, #to_hash, #to_json

Constructor Details

This class inherits a constructor from Microformats2::ImpliedProperty::Foundation

Instance Method Details

#method_nameObject



5
6
7
# File 'lib/microformats2/implied_property/name.rb', line 5

def method_name
  "name"
end

#to_sObject



9
10
11
# File 'lib/microformats2/implied_property/name.rb', line 9

def to_s
  @to_s ||= element_value || selector_value || text_value
end