mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Expose name and source
This commit is contained in:
parent
ac3a5c8515
commit
98bfed2f83
1 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,11 @@ require "./generic_method_call"
|
|||
|
||||
module Spectator::Mocks
|
||||
abstract class MethodStub
|
||||
def initialize(@name : Symbol, @source : Source)
|
||||
getter name : Symbol
|
||||
|
||||
getter source : Source
|
||||
|
||||
def initialize(@name, @source)
|
||||
end
|
||||
|
||||
def callable?(call : GenericMethodCall(T, NT)) : Bool forall T, NT
|
||||
|
|
Loading…
Reference in a new issue