Class: RubyDictionary::Method

Inherits:
Object
  • Object
show all
Includes:
Findable::InstanceMethods
Defined in:
lib/ruby_dictionary/method.rb

Constant Summary collapse

@@all =
[]

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Findable::InstanceMethods

#find_by_name

Constructor Details

#initialize(name = nil, callseq = nil, description = nil, examples = nil, method_type = nil, klass_name = nil, klass = nil) ⇒ Method

Returns a new instance of Method.



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/ruby_dictionary/method.rb', line 6

def initialize(name=nil,callseq=nil,description=nil,examples=nil,method_type=nil, klass_name=nil, klass=nil)
  @name = name
  @callseq = callseq
  @description = description
  @examples = examples
  @method_type = method_type
  @klass_name = klass_name
  @klass = klass
  #self.klass=(klass_name) unless klass_name == nil

end

Instance Attribute Details

#callseqObject

Returns the value of attribute callseq.



3
4
5
# File 'lib/ruby_dictionary/method.rb', line 3

def callseq
  @callseq
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/ruby_dictionary/method.rb', line 3

def description
  @description
end

#examplesObject

Returns the value of attribute examples.



3
4
5
# File 'lib/ruby_dictionary/method.rb', line 3

def examples
  @examples
end

#klassObject

Returns the value of attribute klass.



3
4
5
# File 'lib/ruby_dictionary/method.rb', line 3

def klass
  @klass
end

#method_typeObject

Returns the value of attribute method_type.



3
4
5
# File 'lib/ruby_dictionary/method.rb', line 3

def method_type
  @method_type
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/ruby_dictionary/method.rb', line 3

def name
  @name
end