Class: CutePrint::RubyParser::MethodCall Private
- Includes:
- WrapsSexp
- Defined in:
- lib/cute_print/ruby_parser/method_call.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .call?(sexp) ⇒ Boolean private
- .call_to_method?(sexp, method_name) ⇒ Boolean private
Instance Method Summary collapse
- #block ⇒ Object private
Methods included from WrapsSexp
Class Method Details
.call?(sexp) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 |
# File 'lib/cute_print/ruby_parser/method_call.rb', line 16 def self.call?(sexp) sexp[0] == :iter && sexp[1][0] == :call end |
.call_to_method?(sexp, method_name) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 |
# File 'lib/cute_print/ruby_parser/method_call.rb', line 12 def self.call_to_method?(sexp, method_name) call?(sexp) && sexp[1][2] == method_name end |