Class: RackConsole::AppHelpers::MockMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/rack_console/app_helpers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#kindObject

Returns the value of attribute kind.



265
266
267
# File 'lib/rack_console/app_helpers.rb', line 265

def kind
  @kind
end

#methObject

Returns the value of attribute meth.



265
266
267
# File 'lib/rack_console/app_helpers.rb', line 265

def meth
  @meth
end

#nameObject

Returns the value of attribute name.



265
266
267
# File 'lib/rack_console/app_helpers.rb', line 265

def name
  @name
end

#ownerObject

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

Returns:

  • (Boolean)


269
270
271
# File 'lib/rack_console/app_helpers.rb', line 269

def instance_method?
  @kind == :i
end

#source_locationObject



272
273
274
# File 'lib/rack_console/app_helpers.rb', line 272

def source_location
  @meth.source_location
end