Post History
Ruby 3.1.0, 274 259 249 bytes -10 bytes thanks to Paradox in the Ruby discord BEGIN{END{alias module class begin rescue retry ensure end if self elsif defined? for$.in true do super while f...
Answer
#5: Post edited
# [Ruby 3.1.0](https://www.ruby-lang.org/en/), ~~274~~ 259 bytes```RUBYBEGIN{END{alias undef class- begin rescue
- retry ensure end
if self and true or false- elsif defined?
for$.in 1do module Bsuper endredo- next end
return def _ =yield endcase __ENCODING__ when __LINE__ then __FILE__ else break while1 until2 unless not nil end}}- ```
41 total keywords that you can view [here](https://devdocs.io/ruby~3/keywords_rdoc).
- # [Ruby 3.1.0](https://www.ruby-lang.org/), ~~274~~ ~~259~~ 249 bytes
- -10 bytes thanks to Paradox in the Ruby discord
- ```ruby
- BEGIN{END{alias module class
- begin rescue
- retry ensure end
- if self
- elsif defined?
- for$.in true do
- super while false until 0unless not __ENCODING__ and __LINE__ or nil
- undef redo
- next end
- return def break =yield end
- case when __FILE__ then else end}}
- ```
- [Attempt This Online!](https://ato.pxeger.com/run?1=NZBNTgMxDIX3OYUXbEEs2SAk6FCNVIUjjDITh0akDrJjlVHVk7DpAg7FUdjhKbDy__es9_7BOs6n06e2dHnz9X3frXt_6PzqEEoOArsatSBMJYi4EZ8zAaNMio6x8QxIoowWossJBEtyWMTSiCkTxjuXKl9c2VljRYjVib4iw36bDZtCEQSllgtcKxUUAaoNhqHzD0-r3q-HAQJFa2x631lRGSgXp2R8-8R4hG_trG8PKdMiDCNjeIHbOWOJ59kUTGe_RTLSY79ZSG2pcNG3hePx14A_H_79-AE)
- 41 total keywords that you can view [here](https://devdocs.io/ruby~3/keywords_rdoc).
#4: Post edited
# [Ruby 3.1.0](https://www.ruby-lang.org/en/), ~~274~~ 262 bytes- ```RUBY
- BEGIN{END{alias undef class
if self&&true||false- begin rescue
- retry ensure end
- elsif defined?
- for$.in 1do module B
super until1 end- redo
- next end
return def _ =yield1 end- case __ENCODING__ when __LINE__ then __FILE__ else break while1 until2 unless not nil end}}
- ```
- 41 total keywords that you can view [here](https://devdocs.io/ruby~3/keywords_rdoc).
- # [Ruby 3.1.0](https://www.ruby-lang.org/en/), ~~274~~ 259 bytes
- ```RUBY
- BEGIN{END{alias undef class
- begin rescue
- retry ensure end
- if self and true or false
- elsif defined?
- for$.in 1do module B
- super end
- redo
- next end
- return def _ =yield end
- case __ENCODING__ when __LINE__ then __FILE__ else break while1 until2 unless not nil end}}
- ```
- 41 total keywords that you can view [here](https://devdocs.io/ruby~3/keywords_rdoc).
#3: Post edited
# [Ruby 3.1.0](https://www.ruby-lang.org/en/), 265 bytes- ```RUBY
BEGIN{END{alias undef class- if self&&true||false
beginrescueretryensureend- elsif defined?
for a in 1domodule Bsuper until1end- redo
nextendreturnenddef _ =yield a;case __ENCODING__ when __LINE__ then __FILE__ else break while1 until2 unless not nil end}}- ```
41 total keywords that you can view [here](https://devdocs.io/ruby~3/keywords_rdoc). Hard to make any improvements because of the `end`s.
- # [Ruby 3.1.0](https://www.ruby-lang.org/en/), ~~274~~ 262 bytes
- ```RUBY
- BEGIN{END{alias undef class
- if self&&true||false
- begin rescue
- retry ensure end
- elsif defined?
- for$.in 1do module B
- super until1 end
- redo
- next end
- return def _ =yield1 end
- case __ENCODING__ when __LINE__ then __FILE__ else break while1 until2 unless not nil end}}
- ```
- 41 total keywords that you can view [here](https://devdocs.io/ruby~3/keywords_rdoc).
#2: Post edited
# [Ruby 3.1.0](https://jsoftware.com/#/), 274 bytes- ```RUBY
- BEGIN{END{
- alias undef class
if self and true or false- begin
- rescue
- retry
- ensure
- end
- elsif defined?
for a in 1 do- module B
super until 1- end
- redo
- next
- end
- return
- end
def _ =yield a;case __ENCODING__ when __LINE__ then __FILE__ else break while 1 until 2 unless not nil end}}- ```
- 41 total keywords that you can view [here](https://devdocs.io/ruby~3/keywords_rdoc). Hard to make any improvements because of the `end`s.
- # [Ruby 3.1.0](https://www.ruby-lang.org/en/), 265 bytes
- ```RUBY
- BEGIN{END{
- alias undef class
- if self&&true||false
- begin
- rescue
- retry
- ensure
- end
- elsif defined?
- for a in 1do
- module B
- super until1
- end
- redo
- next
- end
- return
- end
- def _ =yield a;case __ENCODING__ when __LINE__ then __FILE__ else break while1 until2 unless not nil end}}
- ```
- 41 total keywords that you can view [here](https://devdocs.io/ruby~3/keywords_rdoc). Hard to make any improvements because of the `end`s.
#1: Initial revision
# [Ruby 3.1.0](https://jsoftware.com/#/), 274 bytes ```RUBY BEGIN{END{ alias undef class if self and true or false begin rescue retry ensure end elsif defined? for a in 1 do module B super until 1 end redo next end return end def _ =yield a;case __ENCODING__ when __LINE__ then __FILE__ else break while 1 until 2 unless not nil end}} ``` 41 total keywords that you can view [here](https://devdocs.io/ruby~3/keywords_rdoc). Hard to make any improvements because of the `end`s.