Sha256: ea253853d09d1c89b16251486f890caab0fc3a117f518608080af7ab3e06814a
Contents?: true
Size: 598 Bytes
Versions: 3
Compression:
Stored size: 598 Bytes
Contents
module Restfulie::Common::Builder::Marshalling class << self def add_autoload_path(path) if File.directory?(path) Dir["#{path}/*.rb"].each do |file| marshalling_class = File.basename(file, ".rb").downcase.classify.to_sym self.autoload(marshalling_class, file) if !self.const_defined?(marshalling_class) && self.autoload?(marshalling_class).nil? end else raise Restfulie::Common::Error::MarshallingError.new("#{path} is not a path.") end end end self.add_autoload_path(File.join(File.dirname(__FILE__), 'marshalling')) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
restfulie-0.7.2 | lib/restfulie/common/builder/marshalling.rb |
restfulie-0.7.1 | lib/restfulie/common/builder/marshalling.rb |
restfulie-0.7.0 | lib/restfulie/common/builder/marshalling.rb |