Module: Spidy::Binder
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/spidy/binder.rb
Overview
Bind resource received from the connection to the result object
Defined Under Namespace
Classes: Base, Caller, Error, Html, Json, Xml
Class Method Summary
collapse
Class Method Details
.get(spidy, value) ⇒ Object
50
51
52
53
54
|
# File 'lib/spidy/binder.rb', line 50
def self.get(spidy, value)
return Caller.new(spidy, const_get(value.to_s.classify)) if name.is_a?(String) || name.is_a?(Symbol)
value
end
|