Class: RackConsole::AppHelpers::MockMethod
- Inherits:
-
Object
- Object
- RackConsole::AppHelpers::MockMethod
- Defined in:
- lib/rack_console/app_helpers.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#meth ⇒ Object
Returns the value of attribute meth.
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner ⇒ Object
Returns the value of attribute owner.
Instance Method Summary collapse
-
#initialize(*args) ⇒ MockMethod
constructor
A new instance of MockMethod.
- #instance_method? ⇒ Boolean
- #source_location ⇒ Object
Constructor Details
#initialize(*args) ⇒ MockMethod
Returns a new instance of MockMethod.
284 285 286 |
# File 'lib/rack_console/app_helpers.rb', line 284 def initialize *args @meth, @name, @kind, @owner = args end |
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind.
283 284 285 |
# File 'lib/rack_console/app_helpers.rb', line 283 def kind @kind end |
#meth ⇒ Object
Returns the value of attribute meth.
283 284 285 |
# File 'lib/rack_console/app_helpers.rb', line 283 def meth @meth end |
#name ⇒ Object
Returns the value of attribute name.
283 284 285 |
# File 'lib/rack_console/app_helpers.rb', line 283 def name @name end |
#owner ⇒ Object
Returns the value of attribute owner.
283 284 285 |
# File 'lib/rack_console/app_helpers.rb', line 283 def owner @owner end |
Instance Method Details
#instance_method? ⇒ Boolean
287 288 289 |
# File 'lib/rack_console/app_helpers.rb', line 287 def instance_method? @kind == :i end |
#source_location ⇒ Object
290 291 292 |
# File 'lib/rack_console/app_helpers.rb', line 290 def source_location @meth.source_location end |