37 lines
454 B
Plaintext
37 lines
454 B
Plaintext
include::../description.adoc[]
|
|
|
|
== Noncompliant Code Example
|
|
|
|
----
|
|
class Foo:
|
|
foo = ''
|
|
|
|
def getFoo(self):
|
|
...
|
|
|
|
foo = Foo()
|
|
foo.getFoo() # what does this return?
|
|
----
|
|
|
|
== Compliant Solution
|
|
|
|
----
|
|
class Foo:
|
|
name = ''
|
|
|
|
def getName(self):
|
|
...
|
|
|
|
foo = Foo()
|
|
foo.getName()
|
|
----
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::../message.adoc[]
|
|
|
|
endif::env-github,rspecator-view[]
|