Module: Unparser::Writer

Includes:
Generation, NodeHelpers
Included in:
Binary, DynamicString, Resbody, Rescue, Send
Defined in:
lib/unparser/writer.rb,
lib/unparser/writer/send.rb,
lib/unparser/writer/binary.rb,
lib/unparser/writer/rescue.rb,
lib/unparser/writer/resbody.rb,
lib/unparser/writer/send/unary.rb,
lib/unparser/writer/send/binary.rb,
lib/unparser/writer/send/regular.rb,
lib/unparser/writer/dynamic_string.rb,
lib/unparser/writer/send/conditional.rb,
lib/unparser/writer/send/attribute_assignment.rb

Defined Under Namespace

Classes: Binary, DynamicString, Resbody, Rescue, Send

Constant Summary

Constants included from Generation

Generation::EXTRA_NL

Class Method Summary collapse

Methods included from Generation

#emit_heredoc_reminders, #symbol_name, #write_to_buffer

Methods included from NodeHelpers

#n, #n?, #s, #unwrap_single_begin

Class Method Details

.included(descendant) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/unparser/writer.rb', line 7

def self.included(descendant)
  descendant.class_eval do
    include Anima.new(:buffer, :comments, :node, :local_variable_scope)

    extend DSL
  end
end