Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate Graphic Elements to One Class #42

Merged
merged 14 commits into from
Oct 31, 2019

Conversation

LagTag
Copy link
Collaborator

@LagTag LagTag commented Oct 15, 2019

Ellipse, Box, Circle, Symbol, and Diagonal elements all added to one class.

Added Spec for new graphic class. Deleted Diagonal and elipse classes (since these were only added a few weeks ago, I didn't deprecate them.

Deprecated warning for Box class as it is now redundant. Eventually will delete this class.

Closes #30

@LagTag LagTag added the wip Work In Progress label Oct 15, 2019
lib/zebra/zpl/graphic.rb Outdated Show resolved Hide resolved
@mtking2
Copy link
Collaborator

mtking2 commented Oct 15, 2019

Sweet. This is much cleaner 👌 Should close #30 now since everything is covered in this.

@LagTag LagTag mentioned this pull request Oct 15, 2019
6 tasks
lib/zebra/zpl/graphic.rb Outdated Show resolved Hide resolved
lib/zebra/zpl/graphic.rb Outdated Show resolved Hide resolved
@graphic_type = type
end

def self.valid_graphic_type?(type)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guess I forgot to remove this method when I created the setter for graphic type

@mtking2 mtking2 added this to the Version 1.1.0 milestone Oct 23, 2019
@LagTag LagTag removed the wip Work In Progress label Oct 31, 2019
@mtking2 mtking2 merged commit bb342f6 into bbulpett:master Oct 31, 2019
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.

Add Graphics Elements
2 participants