Skip to content

Conversation

@MahshidZ
Copy link
Contributor

I would extend the decorator from the base class. The reason is that we still expect an italic bold text to be a text! So we expect the behaviours of the basic TextTag class to exists in the class that is being decorated. Example: If you add the following method to the TextTag class, you expect your decorated objects still be able to call that method:

def say_hello():
    print 'hello I am text!'

I would extend the decorator from the base class. The reason is that we still expect an italic bold text to be a text! So we expect the behaviours of the basic TextTag class to exists in the class that is being decorated. Example: If you add the following method to the  TextTag class, you expect your decorated objects still be able to call that method:
```
def say_hello():
    print 'hello I am text!'
```
@codecov-io
Copy link

codecov-io commented May 16, 2017

Codecov Report

Merging #194 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #194   +/-   ##
=======================================
  Coverage   94.73%   94.73%           
=======================================
  Files          61       61           
  Lines        2430     2430           
=======================================
  Hits         2302     2302           
  Misses        128      128
Impacted Files Coverage Δ
structural/decorator.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bcfc2e3...d29fa82. Read the comment docs.

@faif faif merged commit cd4118a into faif:master May 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants