Class: MarkdownRubyDocumentation::NullMethod

Inherits:
Method
  • Object
show all
Defined in:
lib/markdown_ruby_documentation/method/null_method.rb

Constant Summary

Constants inherited from Method

Method::InvalidMethodReference

Instance Attribute Summary

Attributes inherited from Method

#file_path, #line_no, #visibility

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Method

#==, ===, create, #hash, #initialize, #inspect, #source_location, #to_s, #type_symbol

Constructor Details

This class inherits a constructor from MarkdownRubyDocumentation::Method

Class Method Details

.type_symbolObject



4
5
6
# File 'lib/markdown_ruby_documentation/method/null_method.rb', line 4

def self.type_symbol
  ""
end

Instance Method Details

#contextObject



20
21
22
# File 'lib/markdown_ruby_documentation/method/null_method.rb', line 20

def context
  method_reference.constantize
end

#context_nameObject



24
25
26
# File 'lib/markdown_ruby_documentation/method/null_method.rb', line 24

def context_name
  method_reference
end

#nameObject



8
9
10
# File 'lib/markdown_ruby_documentation/method/null_method.rb', line 8

def name
  nil
end

#to_procObject



16
17
18
# File 'lib/markdown_ruby_documentation/method/null_method.rb', line 16

def to_proc
  raise "Not convertible to a proc"
end

#typeObject



12
13
14
# File 'lib/markdown_ruby_documentation/method/null_method.rb', line 12

def type
  raise "Does not have a type"
end