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

Support for Symbol data type conversion. #57

Merged
merged 1 commit into from
Nov 6, 2014

Conversation

prodis
Copy link
Contributor

@prodis prodis commented Nov 6, 2014

require 'sax-machine'

class Fake
  include SAXMachine
  element :name
  element :status, class: Symbol
end

xml = '<fake><name>Prodis</name><status>sleepy</status></fake>'

fake = Fake.parse(xml)
fake.name   # => "Prodis"
fake.status # => :sleepy 

krasnoukhov added a commit that referenced this pull request Nov 6, 2014
Support for Symbol data type conversion.
@krasnoukhov krasnoukhov merged commit a515799 into pauldix:master Nov 6, 2014
@krasnoukhov
Copy link
Collaborator

Thanks!

@prodis prodis deleted the symbol branch November 6, 2014 13:53
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.

2 participants