Class: Duby::AST::StaticMethodDefinition

Inherits:
MethodDefinition show all
Defined in:
lib/duby/ast/method.rb

Instance Attribute Summary

Attributes inherited from MethodDefinition

#arguments, #body, #signature

Attributes included from Named

#name

Attributes inherited from Node

#children, #inferred_type, #newline, #parent, #position

Instance Method Summary collapse

Methods inherited from MethodDefinition

#abstract?, #compile, #infer, #initialize

Methods included from Named

#to_s

Methods inherited from Node

#[], #each, #expr?, #initialize, #inspect, #line_number, #log, #precompile, #resolve_if, #resolved!, #resolved?, #simple_name, #temp, #to_s

Constructor Details

This class inherits a constructor from Duby::AST::MethodDefinition

Instance Method Details

#defining_classObject



179
180
181
# File 'lib/duby/ast/method.rb', line 179

def defining_class
  @defining_class.meta
end

#static?Boolean

Returns:



183
184
185
# File 'lib/duby/ast/method.rb', line 183

def static?
  true
end