Method: OpenGraphReader::Object::DSL#content
- Defined in:
- lib/open_graph_reader/object/dsl.rb
#content(type, *args, options = {}) ⇒ Object
129 130 131 132 133 134 135 136 137 138 |
# File 'lib/open_graph_reader/object/dsl.rb', line 129 def content type, *args = args.pop if args.last.is_a? Hash ||= {} @content_processor = proc {|value| value.downcase! if [:downcase] [:to] ||= self DSL.processors[type].call(value, *args, ) } end |