Class: ToSource::Emitter::UnaryOperatorMethod

Inherits:
Send show all
Defined in:
lib/to_source/emitter/unary_operator_method.rb

Overview

Emitter for unary operator method

Constant Summary collapse

UNARY_MAPPING =
{
  :-@ => :-,
  :+@ => :+,
}.freeze

Constants inherited from Send

Send::UNARY_OPERATORS

Constants inherited from ToSource::Emitter

REGISTRY

Instance Attribute Summary

Attributes inherited from ToSource::Emitter

#buffer, #node

Method Summary

Methods inherited from ToSource::Emitter

build, define_predicate, #initialize, run, #source

Constructor Details

This class inherits a constructor from ToSource::Emitter