Sha256: d0b10493a6c0f62d3081c94b098ff19f5f206650a6113e9d0dc15ed4a75a4037

Contents?: true

Size: 588 Bytes

Versions: 1

Compression:

Stored size: 588 Bytes

Contents

require 'rubygems'
# ruby1.9 style symbol comparability for ruby1.8
class Symbol  # :nodoc:
  unless instance_methods.include?(:'<=>')
    def <=> other
      self.to_s <=> other.to_s
    end
  end
end

# if ActiveSupport is absent, install a very small subset of it for
# some convenience methods
unless Object.const_defined?('ActiveSupport') # :nodoc:
  Dir[File.join(File.dirname( __FILE__), 'active_support_lite','**' )].sort.each do |lib|
    next unless File.file?( lib )
    require lib
  end

  class Hash #:nodoc:
    include ActiveSupport::CoreExtensions::Hash::Keys
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
davidlee-state-fu-0.3.1 lib/state_fu/core_ext.rb