Sha256: 807038712504c9c40950fd834692d1c49f007a2ad390575c1bdb82f2edfe42bb

Contents?: true

Size: 690 Bytes

Versions: 1

Compression:

Stored size: 690 Bytes

Contents

class RubyMethod
  include Findable::InstanceMethods
  attr_accessor :name, :callseq, :description, :examples, :method_type, :klass
  @@all = []

  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

#  def klass=(klass)
#    binding.pry
#    @klass = klass
#    if self.method_type == "Class"
#      klass.add_klass_method(self)
#    else
#      klass.add_inst_method(self)
#    end
#  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_dictionary-0.1.0 lib/ruby_dictionary/method.rb