class INotify::Notifier

def to_io

Raises:
  • (NotImplementedError) - if this is being called in JRuby

Returns:
  • (IO) - An IO object wrapping the file descriptor
def to_io
  raise NotImplementedError.new("INotify::Notifier#to_io is not supported under JRuby") if RUBY_PLATFORM =~ /java/
  @io ||= IO.new(@fd)
end