Module: RubyCodeAPI::Manipulation::Update::Token
- Included in:
- RubyCodeAPI::Manipulation::Update
- Defined in:
- lib/manipulation/update/token.rb
Instance Method Summary collapse
Instance Method Details
#matching_string_arg?(txt) ⇒ Boolean
9 10 11 |
# File 'lib/manipulation/update/token.rb', line 9 def matching_string_arg?(txt) self.arg.elements[0].token == txt end |
#replace_arg_token(replacement) ⇒ Object
5 6 7 |
# File 'lib/manipulation/update/token.rb', line 5 def replace_arg_token(replacement) self.arg.elements[0].token = replacement end |