# File Text/Format.rb, line 750 def initialize(arg = nil, &block) case arg when Text::Format __create(arg.text) do @columns = arg.columns @tabstop = arg.tabstop @first_indent = arg.first_indent @body_indent = arg.body_indent @format_style = arg.format_style @left_margin = arg.left_margin @right_margin = arg.right_margin @extra_space = arg.extra_space @tag_paragraph = arg.tag_paragraph @tag_text = arg.tag_text @abbreviations = arg.abbreviations @nobreak = arg.nobreak @nobreak_regex = arg.nobreak_regex @text = arg.text end instance_eval(&block) unless block.nil? when Hash __create do @columns = arg['columns'] if arg.has_key?('columns') @tabstop = arg['tabstop'] if arg.has_key?('tabstop') @first_indent = arg['first_indent'] if arg.has_key?('first_indent') @body_indent = arg['body_indent'] if arg.has_key?('body_indent') @format_style = arg['format_style'] if arg.has_key?('format_style') @left_margin = arg['left_margin'] if arg.has_key?('left_margin') @right_margin = arg['right_margin'] if arg.has_key?('right_margin') @extra_space = arg['extra_space'] if arg.has_key?('extra_space') @text = arg['text'] if arg.has_key?('text') @tag_paragraph = arg['tag_paragraph'] if arg.has_key?('tag_paragraph') @tag_text = arg['tag_text'] if arg.has_key?('tag_text') @abbreviations = arg['abbreviations'] if arg.has_key?('abbreviations') @nobreak = arg['nobreak'] if arg.has_key?('nobreak') @nobreak_regex = arg['nobreak_regex'] if arg.has_key?('nobreak_regex') end instance_eval(&block) unless block.nil? when String __create(arg, &block) when NilClass __create(&block) else raise TypeError end end