Sha256: 32ca78b8b208bc562df4e6d0851e5967941ed5bc085add3e4817fd7312ad2f65

Contents?: true

Size: 259 Bytes

Versions: 12

Compression:

Stored size: 259 Bytes

Contents

# Define BlankSlate in case ActiveSupport aint present
unless defined? BlankSlate
  class BlankSlate
    instance_methods.reject { |m| m =~ /^__/ || m.to_s == 'object_id' }.each { |m| undef_method m }
    def initialize(me)
      @me = me
    end
  end
end


Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hobosupport-1.0.3 lib/hobo_support/blankslate.rb
hobosupport-1.1.0.pre0 lib/hobo_support/blankslate.rb
hobosupport-1.0.2 lib/hobo_support/blankslate.rb
hobosupport-1.0.1 lib/hobo_support/blankslate.rb
hobosupport-1.0.0 lib/hobo_support/blankslate.rb
hobosupport-0.9.106 lib/hobo_support/blankslate.rb
hobosupport-0.9.105 lib/hobo_support/blankslate.rb
hobosupport-0.9.104 lib/hobo_support/blankslate.rb
hobosupport-0.9.103 lib/hobo_support/blankslate.rb
hobosupport-0.9.102 lib/hobo_support/blankslate.rb
hobosupport-0.9.101 lib/hobo_support/blankslate.rb
hobosupport-0.9.100 lib/hobo_support/blankslate.rb