Class: MetricFu::SingletonMethodNode
- Inherits:
-
SexpNode
- Object
- Struct
- SexpNode
- MetricFu::SingletonMethodNode
show all
- Defined in:
- lib/metric_fu/data_structures/sexp_node.rb
Instance Attribute Summary
Attributes inherited from SexpNode
#sexp
Instance Method Summary
collapse
Methods inherited from SexpNode
#class_method_separator, #each_class, #each_class_method, #each_instance_method, #each_module, #each_of_type, #each_singleton_class, #first_line, #full_method_name, #hide_methods_from_next_round, #instance_method_separator, #last_line, #line_range, #module_namespace, #name, #nil?, #node_type, parse
Instance Method Details
#each_singleton_method(&block) ⇒ Object
103
104
105
|
# File 'lib/metric_fu/data_structures/sexp_node.rb', line 103
def each_singleton_method(&block)
each_of_type(:defn, SingletonMethodNode, &block)
end
|
#full_name(class_name) ⇒ Object
99
100
101
|
# File 'lib/metric_fu/data_structures/sexp_node.rb', line 99
def full_name(class_name)
full_method_name(class_method_separator, class_name)
end
|