lib/alf/reader.rb
# Returns a Reader on `source` denoting a physical representation of a relation.
#
# @param [...]     source a String, a Path or an IO denoting a relation physical source.
# @param [Array]   args optional reader arguments
# @return [Reader] a reader instance built from arguments
# @raise [ArgumentError] if `source` is not recognized or no reader can be found.
#
Returns a Reader on `source` denoting a physical representation of a relation.
Returns a Reader on ` source ` denoting a physical representation of a relation .
def reader(source, *args)
        if Path.like?(source)
          has_reader_for_ext!(Path(source).extname).new(source, *args)
        elsif args.empty?
          coerce(source)
        else
          raise ArgumentError, "Unable to return a reader for `#{source}`"
        end
      end
def reader ( source , * args ) if Path . like? ( source ) has_reader_for_ext! ( Path ( source ) . extname ) . new ( source , * args ) elsif args . empty? coerce ( source ) else raise ArgumentError , "Unable to return a reader for `#{source}`" end end
Returns a Reader on `source` denoting a physical representation of a relation.
Returns a Reader on ` source ` denoting a physical representation of a relation .
a reader instance built from arguments
a reader instance built from arguments
Reader
[ArgumentError] if `source` is not recognized or no reader can be found.
[ ArgumentError ] if ` source ` is not recognized or no reader can be found .
source
<not_specific>
args
<not_specific>
<not_specific>
args optional reader arguments
args optional reader arguments