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.



303
304
305
# File 'lib/rack_console/app_helpers.rb', line 303

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

Instance Attribute Details

#kindObject

Returns the value of attribute kind.



302
303
304
# File 'lib/rack_console/app_helpers.rb', line 302

def kind
  @kind
end

#methObject

Returns the value of attribute meth.



302
303
304
# File 'lib/rack_console/app_helpers.rb', line 302

def meth
  @meth
end

#nameObject

Returns the value of attribute name.



302
303
304
# File 'lib/rack_console/app_helpers.rb', line 302

def name
  @name
end

#ownerObject

Returns the value of attribute owner.



302
303
304
# File 'lib/rack_console/app_helpers.rb', line 302

def owner
  @owner
end

Instance Method Details

#instance_method?Boolean

Returns:

  • (Boolean)


306
307
308
# File 'lib/rack_console/app_helpers.rb', line 306

def instance_method?
  @kind == :i
end

#source_locationObject



309
310
311
# File 'lib/rack_console/app_helpers.rb', line 309

def source_location
  @meth.source_location
end