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.



284
285
286
# File 'lib/rack_console/app_helpers.rb', line 284

def initialize *args
  @meth, @name, @kind, @owner = args
end

Instance Attribute Details

#kindObject

Returns the value of attribute kind.



283
284
285
# File 'lib/rack_console/app_helpers.rb', line 283

def kind
  @kind
end

#methObject

Returns the value of attribute meth.



283
284
285
# File 'lib/rack_console/app_helpers.rb', line 283

def meth
  @meth
end

#nameObject

Returns the value of attribute name.



283
284
285
# File 'lib/rack_console/app_helpers.rb', line 283

def name
  @name
end

#ownerObject

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

Returns:

  • (Boolean)


287
288
289
# File 'lib/rack_console/app_helpers.rb', line 287

def instance_method?
  @kind == :i
end

#source_locationObject



290
291
292
# File 'lib/rack_console/app_helpers.rb', line 290

def source_location
  @meth.source_location
end