Class: SyntaxTree::Index::AliasMethodDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/syntax_tree/index.rb

Overview

This entry represents a method definition that was created using the alias keyword.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nesting, name, location, comments) ⇒ AliasMethodDefinition

Returns a new instance of AliasMethodDefinition.



88
89
90
91
92
93
# File 'lib/syntax_tree/index.rb', line 88

def initialize(nesting, name, location, comments)
  @nesting = nesting
  @name = name
  @location = location
  @comments = comments
end

Instance Attribute Details

#commentsObject (readonly)

Returns the value of attribute comments.



86
87
88
# File 'lib/syntax_tree/index.rb', line 86

def comments
  @comments
end

#locationObject (readonly)

Returns the value of attribute location.



86
87
88
# File 'lib/syntax_tree/index.rb', line 86

def location
  @location
end

#nameObject (readonly)

Returns the value of attribute name.



86
87
88
# File 'lib/syntax_tree/index.rb', line 86

def name
  @name
end

#nestingObject (readonly)

Returns the value of attribute nesting.



86
87
88
# File 'lib/syntax_tree/index.rb', line 86

def nesting
  @nesting
end