Class: Lab42::Curry::ArgCompiler
- Inherits:
-
Object
- Object
- Lab42::Curry::ArgCompiler
- Defined in:
- lib/lab42/curry/arg_compiler.rb,
lib/lab42/curry/arg_compiler/phase2.rb,
lib/lab42/curry/arg_compiler/positionals.rb
Defined Under Namespace
Classes: Phase2, Positionals
Instance Attribute Summary collapse
-
#ct_blk ⇒ Object
readonly
Returns the value of attribute ct_blk.
Instance Method Summary collapse
- #allows_override? ⇒ Boolean
- #compile(rt_args, rt_kwds, rt_blk) ⇒ Object
- #final_kwds ⇒ Object
-
#positionals ⇒ Object
0 based.
Instance Attribute Details
#ct_blk ⇒ Object (readonly)
Returns the value of attribute ct_blk.
13 14 15 |
# File 'lib/lab42/curry/arg_compiler.rb', line 13 def ct_blk @ct_blk end |
Instance Method Details
#allows_override? ⇒ Boolean
15 |
# File 'lib/lab42/curry/arg_compiler.rb', line 15 def allows_override?; @allow_override end |
#compile(rt_args, rt_kwds, rt_blk) ⇒ Object
17 18 19 |
# File 'lib/lab42/curry/arg_compiler.rb', line 17 def compile(rt_args, rt_kwds, rt_blk) Phase2.new(self, rt_args, rt_kwds, rt_blk).compile end |
#final_kwds ⇒ Object
28 29 30 |
# File 'lib/lab42/curry/arg_compiler.rb', line 28 def final_kwds @__final_kwds__ ||= {} end |
#positionals ⇒ Object
0 based
24 25 26 |
# File 'lib/lab42/curry/arg_compiler.rb', line 24 def positionals @__positionals__ ||= Positionals.new end |