Class: Rust::Function
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(name) ⇒ Function
constructor
A new instance of Function.
- #to_R ⇒ Object
Constructor Details
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments.
6 7 8 |
# File 'lib/rust-calls.rb', line 6 def arguments @arguments end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/rust-calls.rb', line 5 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
7 8 9 |
# File 'lib/rust-calls.rb', line 7 def @options end |
Instance Method Details
#to_R ⇒ Object
27 28 29 30 |
# File 'lib/rust-calls.rb', line 27 def to_R params = [@arguments.to_R, @options.to_R].select { |v| v != "" }.join(",") return "#@function(#{params})" end |