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.
266 267 268 |
# File 'lib/rack_console/app_helpers.rb', line 266 def initialize *args @meth, @name, @kind, @owner = args end |
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind.
265 266 267 |
# File 'lib/rack_console/app_helpers.rb', line 265 def kind @kind end |
#meth ⇒ Object
Returns the value of attribute meth.
265 266 267 |
# File 'lib/rack_console/app_helpers.rb', line 265 def meth @meth end |
#name ⇒ Object
Returns the value of attribute name.
265 266 267 |
# File 'lib/rack_console/app_helpers.rb', line 265 def name @name end |
#owner ⇒ Object
Returns the value of attribute owner.
265 266 267 |
# File 'lib/rack_console/app_helpers.rb', line 265 def owner @owner end |
Instance Method Details
#instance_method? ⇒ Boolean
269 270 271 |
# File 'lib/rack_console/app_helpers.rb', line 269 def instance_method? @kind == :i end |
#source_location ⇒ Object
272 273 274 |
# File 'lib/rack_console/app_helpers.rb', line 272 def source_location @meth.source_location end |