Class: Duby::AST::JRubyAst::NewlineNode

Inherits:
Object
  • Object
show all
Defined in:
lib/duby/transform.rb

Instance Method Summary collapse

Instance Method Details

#signature(parent) ⇒ Object

newlines are bypassed during signature transformation



912
913
914
# File 'lib/duby/transform.rb', line 912

def signature(parent)
  next_node.signature(parent)
end

#transform(transformer, parent) ⇒ Object



905
906
907
908
909
# File 'lib/duby/transform.rb', line 905

def transform(transformer, parent)
  actual = transformer.transform(next_node, parent)
  actual.newline = true
  actual
end