module DataStax

Constants

Cassandra

Public Class Methods

include(path) click to toggle source
   # File lib/datastax/cassandra.rb
30 def self.include(path)
31   path = File.expand_path(path + '.rb', @base)
32   class_eval(File.read(path), path, 1)
33 end
require(path) click to toggle source
   # File lib/datastax/cassandra.rb
22 def self.require(path)
23   if path.start_with?('cassandra/')
24     include(path)
25   else
26     ::Kernel.require(path)
27   end
28 end