Class: Ykutils::StructuredTextForX

Inherits:
StructuredText show all
Includes:
DebugUtils
Defined in:
lib/ykutils/stextx.rb

Constant Summary

Constants included from NKFUTIL

NKFUTIL::CODE_TO_NAME

Instance Attribute Summary

Attributes inherited from StructuredText

#item_ary, #main_ary, #main_hash

Instance Method Summary collapse

Methods included from DebugUtils

#clear_d, #d, #d_caller, #d_exit, #d_p, #d_pp, #d_puts, #d_puts_no_empty, #debug_utils_init, #error_exit, #puts_current_method, #puts_d, #puts_no_empty, #w1_puts, #w2_puts

Methods inherited from StructuredText

#dump_to_file, #load, #load_analyze

Methods included from DataStructOp

#exchange, #make_array, #make_hash, #select_array

Methods included from SpecFileOp

#check_data_complement, #check_data_complement_print_message, #dump_yaml_fileobj, #expand_data, #load_csv_file, #load_csv_file_ex, #load_plain_text_file, #load_yaml_file, #make_data_complement, #open_for_write, #parse_yaml_file, #save_yaml_file, #valid?

Methods included from NKFUTIL

assoc_equal, auto_config_from_inner, auto_config_to_inner, config, convert, get, guess_encoding, #nkf_utf8_file, #puts_sj, #puts_u, set

Constructor Details

#initialize(debug: false) ⇒ StructuredTextForX

Returns a new instance of StructuredTextForX.



9
10
11
12
13
14
15
# File 'lib/ykutils/stextx.rb', line 9

def initialize(debug: false)
  super()

  debug_utils_init
  debug(debug)
  ends
end

Instance Method Details

#analyze(line_ary, _fname = nil) ⇒ Object



17
18
19
20
21
22
# File 'lib/ykutils/stextx.rb', line 17

def analyze(line_ary, _fname = nil)
  lines = XLines.new(line_ary)
  #    lines.output_f( fname )

  analyze_sub(lines)
end

#analyze_sub(lines) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/ykutils/stextx.rb', line 24

def analyze_sub(lines)
  puts_current_method

  while lines.get_line
    #      p line
  end
end