-
Notifications
You must be signed in to change notification settings - Fork 16
Operatorの命令ブロックをRubyに変換できるようにしました #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Operatorの命令ブロックをRubyに変換できるようにしました #68
Conversation
@t-kazu レビューしました。お手数ですが、修正をお願いします。 |
fd49e4c
to
c89f3f0
Compare
c89f3f0
to
3b43e06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
優先順位のことすっかり忘れていました。修正しました。
ご確認お願い致します。
src/lib/ruby-generator/operators.js
Outdated
}; | ||
|
||
Blockly.Ruby.operator_and = function (block) { | ||
const operand1 = Blockly.Ruby.valueToCode(block, 'OPERAND1', Blockly.Ruby.ORDER_NONE) || 'false'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
何も無い時はfalseの動きだったので、何も無い時はfalseを返すようにしています。
LGTM |
Rubyのコード的に ${str1}.include(${str2})? にしましたが、${str1}.contains(${str2})? の方がよろしいでしょうか?