プロジェクト

全般

プロフィール

Vote #72331

完了

Option to pass whole arguments to a macro without splitting them

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Plugin API_20
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
20
version_id:
47
issue_org_id:
11578
author_id:
60866
assigned_to_id:
1
comments:
1
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Why not passing the whole content of the macro to the exec_macro and let the macro developer decide whether or not he has any arguments or not which are separated by comma or something else. This Issue is also related to ongoing discussion #3061 of parsing complete macro text without exclusion.


journals

Obviously, I can't change the current behaviour for compatibility reasons but an option @:parse_args => false@ is added in r10174 to disable arguments parsing when registering a macro. Example:

<pre>
macro :my_macro, :parse_args => false do |obj, args|
# args is the whole string of arguments used to invoke the macro
end
</pre>
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリPlugin API_20 にセット
  • 対象バージョン2.1.0_47 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0