Class: Lab42::Curry::ArgCompiler

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#ct_blkObject (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

Returns:

  • (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_kwdsObject



28
29
30
# File 'lib/lab42/curry/arg_compiler.rb', line 28

def final_kwds
  @__final_kwds__ ||= {}
end

#positionalsObject

0 based



24
25
26
# File 'lib/lab42/curry/arg_compiler.rb', line 24

def positionals
  @__positionals__ ||= Positionals.new 
end