Module: Musashi::Retriever::Content
- Includes:
- DelegateHash
- Defined in:
- lib/musashi/retriever.rb
Instance Attribute Summary
Attributes included from Connection
Class Method Summary collapse
Instance Method Summary collapse
Methods included from DelegateHash
#[], #attrs, #fetch, #key?, #keys, #method_missing
Methods included from VisitorStrategist
#[], #has_key?, #method_missing, #respond_to?
Methods included from Strategist
define, #define, define_by_behavior, define_by_name, #follow?, #no_follow, retrievers_by_behavior, retrievers_by_behavior=, retrievers_by_name, retrievers_by_name=
Methods included from Base
Methods included from Connection
#accept, #connection, #options
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Musashi::Retriever::DelegateHash
Class Method Details
.extend?(receiver) ⇒ Boolean
165 166 167 168 |
# File 'lib/musashi/retriever.rb', line 165 def self.extend?(receiver) !receiver.nil? && receiver.respond_to?(:start_with?) && \ receiver.start_with?('http') && !receiver.is_a?(Content) end |
Instance Method Details
#retrieve ⇒ Object
176 177 178 179 |
# File 'lib/musashi/retriever.rb', line 176 def retrieve self.endpoint = to_s super end |