module ONIX::CodeHelper
Public Instance Methods
human()
click to toggle source
Humanized string code @return [String]
# File lib/onix/code.rb, line 16 def human @human end
onix()
click to toggle source
ONIX
code @return [String]
# File lib/onix/code.rb, line 22 def onix @code end
parse(n)
click to toggle source
# File lib/onix/code.rb, line 8 def parse(n) parse_attributes(n.attributes) @code = n.text @human = self.class.hash[n.text] end