Sha256: bee3b589f34f936bc3fa9ec13033f24f2cbfd86c13877c8dfeee0e9a5e653876
Contents?: true
Size: 460 Bytes
Versions: 2
Compression:
Stored size: 460 Bytes
Contents
module Alf module Iterator module ClassMethods # # Coerces something to an iterator # def coerce(arg, environment = nil) case arg when Iterator, Array arg when String, Symbol Proxy.new(environment, arg.to_sym) else Reader.coerce(arg, environment) end end end # module ClassMethods extend(ClassMethods) end # module Iterator end # module Alf
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alf-0.10.1 | lib/alf/iterator/class_methods.rb |
alf-0.10.0 | lib/alf/iterator/class_methods.rb |