Class: Rucc::Macro
- Inherits:
-
Object
- Object
- Rucc::Macro
- Defined in:
- lib/rucc/macro.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#fn ⇒ Object
readonly
Returns the value of attribute fn.
-
#is_varg ⇒ Object
readonly
Returns the value of attribute is_varg.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#nargs ⇒ Object
readonly
Returns the value of attribute nargs.
Instance Method Summary collapse
-
#initialize(kind, body: nil, nargs: nil, is_varg: nil, fn: nil) ⇒ Macro
constructor
A new instance of Macro.
Constructor Details
#initialize(kind, body: nil, nargs: nil, is_varg: nil, fn: nil) ⇒ Macro
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/rucc/macro.rb', line 10 def initialize(kind, body: nil, nargs: nil, is_varg: nil, fn: nil ) @kind = kind @body = body @nargs = nargs @is_varg = is_varg @fn = fn end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
22 23 24 |
# File 'lib/rucc/macro.rb', line 22 def body @body end |
#fn ⇒ Object (readonly)
Returns the value of attribute fn.
22 23 24 |
# File 'lib/rucc/macro.rb', line 22 def fn @fn end |
#is_varg ⇒ Object (readonly)
Returns the value of attribute is_varg.
22 23 24 |
# File 'lib/rucc/macro.rb', line 22 def is_varg @is_varg end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
22 23 24 |
# File 'lib/rucc/macro.rb', line 22 def kind @kind end |
#nargs ⇒ Object (readonly)
Returns the value of attribute nargs.
22 23 24 |
# File 'lib/rucc/macro.rb', line 22 def nargs @nargs end |