Class: Melbourne::AST::Snippit

Inherits:
Container show all
Defined in:
lib/melbourne/ast/definitions.rb

Overview

TODO: document!

Instance Attribute Summary

Attributes inherited from Container

#file, #name, #variable_scope

Attributes inherited from ClosedScope

#body

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph

Constructor Details

#initialize(body) ⇒ Snippit

Returns a new instance of Snippit.



525
526
527
528
# File 'lib/melbourne/ast/definitions.rb', line 525

def initialize(body)
  super body
  @name = :__snippit__
end