Sha256: 929ba184f0ba5001a8992cae3957b391116fcbba7284f8e1fbadf79cbf11a0d1
Contents?: true
Size: 515 Bytes
Versions: 2
Compression:
Stored size: 515 Bytes
Contents
# Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the MIT license. module Ramaze module CoreExtensions # Extensions for Object module Object # Available in 1.8.6 and later. unless ::Object.method_defined?(:instance_variable_defined?) def instance_variable_defined?(variable) instance_variables.include?(variable.to_s) end end end # Object end # CoreExtensions end # Ramaze
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-2012.04.14 | lib/ramaze/snippets/object/instance_variable_defined.rb |
ramaze-2012.03.07 | lib/ramaze/snippets/object/instance_variable_defined.rb |