class Yoda::Model::FunctionSignatures::Method

Attributes

method_object[R]

Public Class Methods

new(method_object) click to toggle source

@param method_object [Store::Objects::MethodObject]

# File lib/yoda/model/function_signatures/method.rb, line 9
def initialize(method_object)
  fail ArgumentError, method_object unless method_object.is_a?(Store::Objects::MethodObject)
  @method_object = method_object
end

Public Instance Methods

document() click to toggle source

@return [String]

# File lib/yoda/model/function_signatures/method.rb, line 30
def document
  @method_object.document
end
name() click to toggle source

@return [String]

# File lib/yoda/model/function_signatures/method.rb, line 15
def name
  method_object.name.to_s
end
namespace_path() click to toggle source

@return [String]

# File lib/yoda/model/function_signatures/method.rb, line 25
def namespace_path
  method_object.namespace_path
end
parameter_type_of(param) click to toggle source
# File lib/yoda/model/function_signatures/method.rb, line 54
def parameter_type_of(param)
  type_builder.type_of(param)
end
parameters() click to toggle source

@return [ParameterList]

# File lib/yoda/model/function_signatures/method.rb, line 50
def parameters
  @parameters ||= ParameterList.new(method_object.parameters)
end
primary_source() click to toggle source

@return [(String, Integer, Integer), nil]

# File lib/yoda/model/function_signatures/method.rb, line 45
def primary_source
  method_object.primary_source
end
sep() click to toggle source

@return [String]

# File lib/yoda/model/function_signatures/method.rb, line 20
def sep
  method_object.sep
end
sources() click to toggle source

@return [Array<(String, Integer, Integer)>]

# File lib/yoda/model/function_signatures/method.rb, line 40
def sources
  method_object.source
end
type() click to toggle source

@return [Types::FunctionType]

# File lib/yoda/model/function_signatures/method.rb, line 35
def type
  type_builder.type
end

Private Instance Methods

type_builder() click to toggle source

@return [TypeBuilder]

# File lib/yoda/model/function_signatures/method.rb, line 61
def type_builder
  @type_builder ||= TypeBuilder.new(parameters, method_object.tag_list)
end