Method: CBETA::HTMLToText#convert

Defined in:
lib/cbeta/html_to_text.rb

#convert(arg) ⇒ Object

Examples:

convert("T01")

Parameters:

  • arg (String)

    要執行轉換的冊數



21
22
23
24
25
26
# File 'lib/cbeta/html_to_text.rb', line 21

def convert(arg)
  @dirty = false
  @vol = arg.upcase
  @corpus = @vol[0]
  handle_vol
end