文件名称:power:Power为您提供了宏,这些宏可以通过抽象出多余的语法来简化您的生活
文件大小:6KB
文件格式:ZIP
更新时间:2024-04-22 05:22:53
Crystal
力量 Power为您提供了宏,这些宏可以通过抽象掉多余的语法来简化您的生活。 代码示例 将此添加到您的应用程序的application.cr : require "power" # Define nested modules to show the issue module First :: Second :: Third class Fourth ; end class Fifth ; end class Sixth ; end end # Example with the `Power::Macros` class Seventh # Inculde the macros module include Power :: Macros # Import the class access in this class import First :: Second
【文件预览】:
power-master
----.gitignore(208B)
----README.md(866B)
----.github()
--------workflows()
----shard.yml(190B)
----LICENSE(1KB)
----src()
--------power.cr(167B)
--------power()
----spec()
--------power_spec.cr(48B)
--------power_macros_import.cr(210B)
--------power_macros_spec.cr(56B)
--------all_spec.cr(14B)
--------spec_helper.cr(356B)
----.travis.yml(168B)
----.editorconfig(150B)