Class: RaaP::FunctionType
- Inherits:
-
Object
- Object
- RaaP::FunctionType
- Defined in:
- lib/raap/function_type.rb
Instance Method Summary collapse
- #arguments_to_symbolic_call(size: 10) ⇒ Object
-
#initialize(fun, coverage: true) ⇒ FunctionType
constructor
A new instance of FunctionType.
- #pick_arguments(size: 10) ⇒ Object
Constructor Details
#initialize(fun, coverage: true) ⇒ FunctionType
Returns a new instance of FunctionType.
5 6 7 8 |
# File 'lib/raap/function_type.rb', line 5 def initialize(fun, coverage: true) @fun = fun @coverage = coverage end |
Instance Method Details
#arguments_to_symbolic_call(size: 10) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/raap/function_type.rb', line 14 def arguments_to_symbolic_call(size: 10) a = to_symbolic_call_recursive(build_args_type, size: size) k = to_symbolic_call_recursive(build_kwargs_type, size: size) [a, k] end |
#pick_arguments(size: 10) ⇒ Object
10 11 12 |
# File 'lib/raap/function_type.rb', line 10 def pick_arguments(size: 10) SymbolicCaller.new(arguments_to_symbolic_call(size: size)).eval end |