Class: Duby::AST::StaticMethodDefinition

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

Instance Attribute Summary

Attributes included from Scope

#static_scope

Attributes included from Named

#name

Attributes included from Annotated

#annotations

Attributes inherited from Node

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

Instance Method Summary collapse

Methods inherited from MethodDefinition

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

Methods included from Binding

#binding_type, #binding_type=, #has_binding?

Methods included from Named

#to_s

Methods included from Annotated

#annotation

Methods inherited from Node

#<<, ===, #[], #_set_parent, child, child_name, #each, #empty?, #expr?, #initialize, #initialize_copy, #insert, #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



200
201
202
# File 'lib/duby/ast/method.rb', line 200

def defining_class
  @defining_class.meta
end

#static?Boolean

Returns:



204
205
206
# File 'lib/duby/ast/method.rb', line 204

def static?
  true
end