mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
9d32d440eb
The GitHub Super Linter is a more robust and better supported tool than the current GitHub Actions we are using. Running these checks: ERROR_ON_MISSING_EXEC_BIT: true VALIDATE_BASH: true VALIDATE_BASH_EXEC: true VALIDATE_EDITORCONFIG: true VALIDATE_MARKDOWN: true VALIDATE_SHELL_SHFMT: true VALIDATE_YAML: true https://github.com/marketplace/actions/super-linter https://github.com/github/super-linter Added the GitHub Super Linter badge to the README. Also updated the pre-commit framework and added more documentation on pre-commit. Added one more pre-commit check: check-executables-have-shebangs Added one extra check for merge conflicts to our GitHub Actions. EditorConfig and Markdown linting. Minor grammar and spelling fixes. Update linter.yml
40 lines
582 B
Ruby
40 lines
582 B
Ruby
class BasicObject
|
|
def !=(other)
|
|
if self == other
|
|
false
|
|
else
|
|
true
|
|
end
|
|
end
|
|
end
|
|
|
|
class Module
|
|
# 15.2.2.4.12
|
|
def attr_accessor(*names)
|
|
attr_reader(*names)
|
|
attr_writer(*names)
|
|
end
|
|
# 15.2.2.4.11
|
|
alias attr attr_reader
|
|
#def attr(name)
|
|
# attr_reader(name)
|
|
#end
|
|
|
|
# 15.2.2.4.27
|
|
def include(*args)
|
|
args.reverse.each do |m|
|
|
m.append_features(self)
|
|
m.included(self)
|
|
end
|
|
self
|
|
end
|
|
|
|
def prepend(*args)
|
|
args.reverse.each do |m|
|
|
m.prepend_features(self)
|
|
m.prepended(self)
|
|
end
|
|
self
|
|
end
|
|
end
|