Module: ONIX::CodeHelper

Included in:
Code
Defined in:
lib/onix/code.rb

Instance Method Summary collapse

Instance Method Details

#humanObject

Humanized string code



12
13
14
# File 'lib/onix/code.rb', line 12

def human
  @human
end

#onixObject

ONIX code



17
18
19
# File 'lib/onix/code.rb', line 17

def onix
  @code
end

#parse(n) ⇒ Object



6
7
8
9
# File 'lib/onix/code.rb', line 6

def parse(n)
  @code=n.text
  @human=self.class.hash[n.text]
end