Class: MthdsPool::Mthds

Inherits:
Object
  • Object
show all
Defined in:
lib/mthdspool/mthds.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Mthds

Returns a new instance of Mthds.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/mthdspool/mthds.rb', line 5

def initialize opts={}
  @obj     = opts[:obj]
  @libs    = opts[:libs]
  @reqr    = opts[:reqr]
  @filter  = opts[:filter]
  @gemfile = opts[:gemfile]
  setup
  begin
    @nspct   = eval("#{opts[:nspct]}")
  rescue NameError => e
    puts e.message
    exit 1
  end
end

Instance Attribute Details

#filterObject

Returns the value of attribute filter.



3
4
5
# File 'lib/mthdspool/mthds.rb', line 3

def filter
  @filter
end

#gemfileObject

Returns the value of attribute gemfile.



3
4
5
# File 'lib/mthdspool/mthds.rb', line 3

def gemfile
  @gemfile
end

#libsObject

Returns the value of attribute libs.



3
4
5
# File 'lib/mthdspool/mthds.rb', line 3

def libs
  @libs
end

#nspctObject

Returns the value of attribute nspct.



3
4
5
# File 'lib/mthdspool/mthds.rb', line 3

def nspct
  @nspct
end

#objObject

Returns the value of attribute obj.



3
4
5
# File 'lib/mthdspool/mthds.rb', line 3

def obj
  @obj
end

#reqrObject

Returns the value of attribute reqr.



3
4
5
# File 'lib/mthdspool/mthds.rb', line 3

def reqr
  @reqr
end

Instance Method Details

#inspect_instanceObject



24
25
26
# File 'lib/mthdspool/mthds.rb', line 24

def inspect_instance
  puts @nspct.inspect
end

#objects_methodsObject



20
21
22
# File 'lib/mthdspool/mthds.rb', line 20

def objects_methods
  get_objects.each { |o| print_methods(o) }
end