Class: MthdsPool::Mthds
- Inherits:
-
Object
- Object
- MthdsPool::Mthds
- Defined in:
- lib/mthdspool/mthds.rb
Instance Attribute Summary collapse
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#gemfile ⇒ Object
Returns the value of attribute gemfile.
-
#libs ⇒ Object
Returns the value of attribute libs.
-
#nspct ⇒ Object
Returns the value of attribute nspct.
-
#obj ⇒ Object
Returns the value of attribute obj.
-
#reqr ⇒ Object
Returns the value of attribute reqr.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Mthds
constructor
A new instance of Mthds.
- #inspect_instance ⇒ Object
- #objects_methods ⇒ Object
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. exit 1 end end |
Instance Attribute Details
#filter ⇒ Object
Returns the value of attribute filter.
3 4 5 |
# File 'lib/mthdspool/mthds.rb', line 3 def filter @filter end |
#gemfile ⇒ Object
Returns the value of attribute gemfile.
3 4 5 |
# File 'lib/mthdspool/mthds.rb', line 3 def gemfile @gemfile end |
#libs ⇒ Object
Returns the value of attribute libs.
3 4 5 |
# File 'lib/mthdspool/mthds.rb', line 3 def libs @libs end |
#nspct ⇒ Object
Returns the value of attribute nspct.
3 4 5 |
# File 'lib/mthdspool/mthds.rb', line 3 def nspct @nspct end |
#obj ⇒ Object
Returns the value of attribute obj.
3 4 5 |
# File 'lib/mthdspool/mthds.rb', line 3 def obj @obj end |
#reqr ⇒ Object
Returns the value of attribute reqr.
3 4 5 |
# File 'lib/mthdspool/mthds.rb', line 3 def reqr @reqr end |
Instance Method Details
#inspect_instance ⇒ Object
24 25 26 |
# File 'lib/mthdspool/mthds.rb', line 24 def inspect_instance puts @nspct.inspect end |
#objects_methods ⇒ Object
20 21 22 |
# File 'lib/mthdspool/mthds.rb', line 20 def objects_methods get_objects.each { |o| print_methods(o) } end |