lib/by_star.rb in by_star-0.6.4 vs lib/by_star.rb in by_star-0.7.0
- old
+ new
@@ -1,23 +1,29 @@
require 'chronic'
require 'shared'
require 'range_calculations'
require 'time_ext'
require 'vanilla'
+require 'neighbours'
Dir[File.dirname(__FILE__) + '/calculations/*.rb'].each { |file| require file }
require 'calculations'
module ByStar
def self.included(base)
base.extend ClassMethods
+ base.send(:include, InstanceMethods)
end
module ClassMethods
include RangeCalculations
include Shared
include Vanilla
include Calculations
+ end
+
+ module InstanceMethods
+ include Neighbours
end
class ParseError < Exception; end
class MonthNotFound < Exception; end
end