Sha256: 313937144b8550f671dafb90a7b89117d2dd21f5dfa585e92e47d9fe1dd2a030

Contents?: true

Size: 298 Bytes

Versions: 6

Compression:

Stored size: 298 Bytes

Contents

class ::Logger
  def device
    @logdev.instance_eval{ @dev }
  end
  def tty?
    device.respond_to?('tty?') and device.tty?
  end
end

class Object
  def singleton_class object = self, &block
    sc =
      class << object
        self
      end
    block ? sc.module_eval(&block) : sc
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
main-2.0.0 lib/main/stdext.rb
main-2.4.0 lib/main/stdext.rb
main-2.2.0 lib/main/stdext.rb
main-2.1.0 lib/main/stdext.rb
main-2.3.0 lib/main/stdext.rb
main-2.5.0 lib/main/stdext.rb