File: errno.rb

package info (click to toggle)
mruby 3.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,584 kB
  • sloc: ansic: 51,933; ruby: 29,510; yacc: 7,077; cpp: 517; makefile: 51; sh: 42
file content (15 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Errno
  def Errno.const_defined?(name)
    __errno_defined?(name) or super
  end

  def Errno.const_missing(name)
    __errno_define(name) or super
  end

  # Module#constants is defined in mruby-metaprog
  # So, it may be raised NoMethodError
  def Errno.constants
    __errno_list(super)
  end
end