Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 42 additions & 2 deletions lib/line/bot/v2/reserved_words.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,48 @@ module Bot
module V2
# CodeGen add _ prefix to reserved words
# see: https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractRubyCodegen.java
RESERVED_WORDS = %i[__FILE__ and def end in or self unless __LINE__ begin defined? ensure module redo super until BEGIN break do false next rescue then when END case else for nil retry true
while alias class elsif if not return undef yield]
RESERVED_WORDS = %i[
__FILE__
and
def
end
in
or
self
unless
__LINE__
begin
defined?
ensure
module
redo
super
until
BEGIN
break
do
false
next
rescue
then
when
END
case
else
for
nil
retry
true
while
alias
class
elsif
if
not
return
undef
yield
]
end
end
end