Sha256: e77a242d272ac4ba69c640afd1c6580f281d26cf8f819dc9a526684973bf3595
Contents?: true
Size: 546 Bytes
Versions: 5
Compression:
Stored size: 546 Bytes
Contents
Object.class_eval do def self; self end def present? !blank? end def blank? respond_to?(:empty?) ? empty? : !self end # def metaclass &block # (class << self; self; end) # end # def metaclass_eval &block # metaclass.class_eval(&block) # self # end def respond_to method, *args respond_to?(method) ? send(method, *args) : nil end def try method, *args, &block self && self.send(method, *args, &block) end alias_method :instance_variable_names, :instance_variables public :extend end
Version data entries
5 entries across 5 versions & 1 rubygems