Method: Statement#call_method_at_index
- Defined in:
- lib/rubyslim/statement.rb
#call_method_at_index(index) ⇒ Object
41 42 43 44 45 46 |
# File 'lib/rubyslim/statement.rb', line 41 def call_method_at_index(index) instance_name = get_word(index) method_name = slim_to_ruby_method(get_word(index+1)) args = get_args(index+2) [id, @executor.call(instance_name, method_name, *args)] end |