facets 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +7 -1
- data/ProjectInfo +4 -3
- data/data/facets/index.yml +1 -4
- data/lib/facet/gem/self/gemdir.rb +1 -0
- data/lib/facet/htmlbuilder.rb +1 -0
- data/lib/facet/htmlhelper.rb +1 -0
- data/lib/facet/xmlbuilder.rb +1 -0
- data/lib/facet/xmlhelper.rb +1 -0
- data/lib/facets/core/class/cattr.rb +25 -42
- data/lib/facets/core/gem.rb +1 -0
- data/lib/facets/core/gem/self/gemdir.rb +12 -0
- data/lib/facets/core/gem/self/gempath.rb +8 -2
- data/lib/facets/core/kernel/as.rb +3 -1
- data/lib/facets/core/module.rb +0 -4
- data/lib/facets/more/aspects.rb +29 -37
- data/lib/facets/more/basicobject.rb +69 -30
- data/lib/facets/more/builderobject.rb +41 -158
- data/lib/facets/more/downloader.rb +1 -1
- data/lib/facets/more/functor.rb +1 -0
- data/lib/facets/more/htmlbuilder.rb +83 -0
- data/lib/facets/more/htmlhelper.rb +9 -0
- data/lib/facets/more/multiton.rb +1 -4
- data/lib/facets/more/rexmlbuilder.rb +169 -13
- data/lib/facets/more/tuple.rb +3 -2
- data/lib/facets/more/xmlbuilder.rb +83 -0
- data/lib/facets/more/xmlhelper.rb +171 -0
- data/test/lib/facets/core/array/test_at_rand.rb +1 -1
- data/test/lib/facets/core/array/test_delete_unless.rb +1 -1
- data/test/lib/facets/core/array/test_delete_values.rb +1 -1
- data/test/lib/facets/core/array/test_delete_values_at.rb +1 -1
- data/test/lib/facets/core/array/test_first.rb +1 -1
- data/test/lib/facets/core/array/test_head.rb +1 -1
- data/test/lib/facets/core/array/test_last_index.rb +1 -1
- data/test/lib/facets/core/array/test_merge.rb +1 -1
- data/test/lib/facets/core/array/test_mid.rb +1 -1
- data/test/lib/facets/core/array/test_middle.rb +1 -1
- data/test/lib/facets/core/array/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/array/test_op_store.rb +1 -1
- data/test/lib/facets/core/array/test_pick.rb +1 -1
- data/test/lib/facets/core/array/test_pos.rb +1 -1
- data/test/lib/facets/core/array/test_pot.rb +1 -1
- data/test/lib/facets/core/array/test_pull.rb +1 -1
- data/test/lib/facets/core/array/test_rand_index.rb +1 -1
- data/test/lib/facets/core/array/test_rand_subset.rb +1 -1
- data/test/lib/facets/core/array/test_range.rb +1 -1
- data/test/lib/facets/core/array/test_rotate.rb +1 -1
- data/test/lib/facets/core/array/test_select.rb +1 -1
- data/test/lib/facets/core/array/test_shuffle.rb +1 -1
- data/test/lib/facets/core/array/test_thru.rb +1 -1
- data/test/lib/facets/core/array/test_to_b.rb +1 -1
- data/test/lib/facets/core/array/test_to_h.rb +1 -1
- data/test/lib/facets/core/array/test_to_hash.rb +1 -1
- data/test/lib/facets/core/binding/self/test_of_caller.rb +1 -1
- data/test/lib/facets/core/binding/test___LINE__.rb +1 -1
- data/test/lib/facets/core/binding/test_call_stack.rb +1 -1
- data/test/lib/facets/core/binding/test_called.rb +1 -1
- data/test/lib/facets/core/binding/test_caller.rb +1 -1
- data/test/lib/facets/core/binding/test_defined.rb +1 -1
- data/test/lib/facets/core/binding/test_eval.rb +1 -1
- data/test/lib/facets/core/binding/test_local_variables.rb +1 -1
- data/test/lib/facets/core/binding/test_method_name.rb +1 -1
- data/test/lib/facets/core/binding/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/binding/test_op_store.rb +1 -1
- data/test/lib/facets/core/binding/test_self.rb +1 -1
- data/test/lib/facets/core/class/test_cattr.rb +1 -1
- data/test/lib/facets/core/class/test_descendents.rb +1 -1
- data/test/lib/facets/core/class/test_method_name.rb +1 -1
- data/test/lib/facets/core/class/test_remove_descendents.rb +1 -1
- data/test/lib/facets/core/class/test_unix_path.rb +1 -1
- data/test/lib/facets/core/comparable/test_at_least.rb +1 -1
- data/test/lib/facets/core/comparable/test_clip.rb +1 -1
- data/test/lib/facets/core/comparable/test_cmp.rb +1 -1
- data/test/lib/facets/core/continuation/self/test_create.rb +1 -1
- data/test/lib/facets/core/date/test_days_in_month.rb +1 -1
- data/test/lib/facets/core/date/test_days_of_month.rb +1 -1
- data/test/lib/facets/core/date/test_stamp.rb +1 -1
- data/test/lib/facets/core/date/test_to_date.rb +1 -1
- data/test/lib/facets/core/date/test_to_s.rb +1 -1
- data/test/lib/facets/core/date/test_to_time.rb +1 -1
- data/test/lib/facets/core/dir/self/test_ancestor.rb +1 -1
- data/test/lib/facets/core/dir/self/test_ascend.rb +1 -1
- data/test/lib/facets/core/enumerable/self/test_combinations.rb +1 -1
- data/test/lib/facets/core/enumerable/self/test_cross.rb +1 -1
- data/test/lib/facets/core/enumerable/test_collect_with_index.rb +1 -1
- data/test/lib/facets/core/enumerable/test_commonality.rb +1 -1
- data/test/lib/facets/core/enumerable/test_compact_collect.rb +1 -1
- data/test/lib/facets/core/enumerable/test_cross.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_combination.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_pair.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_slice.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_unique_pair.rb +1 -1
- data/test/lib/facets/core/enumerable/test_entropy.rb +1 -1
- data/test/lib/facets/core/enumerable/test_every.rb +1 -1
- data/test/lib/facets/core/enumerable/test_ew.rb +1 -1
- data/test/lib/facets/core/enumerable/test_filter_collect.rb +1 -1
- data/test/lib/facets/core/enumerable/test_find_collisions.rb +1 -1
- data/test/lib/facets/core/enumerable/test_frequency.rb +1 -1
- data/test/lib/facets/core/enumerable/test_graph.rb +1 -1
- data/test/lib/facets/core/enumerable/test_ideal_entropy.rb +1 -1
- data/test/lib/facets/core/enumerable/test_none.rb +1 -1
- data/test/lib/facets/core/enumerable/test_occur.rb +1 -1
- data/test/lib/facets/core/enumerable/test_one.rb +1 -1
- data/test/lib/facets/core/enumerable/test_op_pow.rb +1 -1
- data/test/lib/facets/core/enumerable/test_partition_by.rb +1 -1
- data/test/lib/facets/core/enumerable/test_permute.rb +1 -1
- data/test/lib/facets/core/enumerable/test_probability.rb +1 -1
- data/test/lib/facets/core/enumerable/test_to_h.rb +1 -1
- data/test/lib/facets/core/enumerable/test_uniq_by.rb +1 -1
- data/test/lib/facets/core/file/self/test_create.rb +1 -1
- data/test/lib/facets/core/file/self/test_open_as_string.rb +1 -1
- data/test/lib/facets/core/file/self/test_read_list.rb +1 -1
- data/test/lib/facets/core/file/self/test_sanitize.rb +1 -1
- data/test/lib/facets/core/file/self/test_split_all.rb +1 -1
- data/test/lib/facets/core/float/test_round_at.rb +1 -1
- data/test/lib/facets/core/float/test_round_to.rb +1 -1
- data/test/lib/facets/core/hash/self/test_zipnew.rb +1 -1
- data/test/lib/facets/core/hash/test_alias.rb +1 -1
- data/test/lib/facets/core/hash/test_assert_has_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_assert_has_only_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_at.rb +1 -1
- data/test/lib/facets/core/hash/test_collate.rb +1 -1
- data/test/lib/facets/core/hash/test_each.rb +1 -1
- data/test/lib/facets/core/hash/test_each_with_index.rb +1 -1
- data/test/lib/facets/core/hash/test_each_with_key.rb +1 -1
- data/test/lib/facets/core/hash/test_graph.rb +1 -1
- data/test/lib/facets/core/hash/test_has_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_has_only_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_inverse.rb +1 -1
- data/test/lib/facets/core/hash/test_keys_to_s.rb +1 -1
- data/test/lib/facets/core/hash/test_keys_to_sym.rb +1 -1
- data/test/lib/facets/core/hash/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/hash/test_op_lshift.rb +1 -1
- data/test/lib/facets/core/hash/test_rand_key.rb +1 -1
- data/test/lib/facets/core/hash/test_rand_pair.rb +1 -1
- data/test/lib/facets/core/hash/test_rand_value.rb +1 -1
- data/test/lib/facets/core/hash/test_replace_each.rb +1 -1
- data/test/lib/facets/core/hash/test_shuffle.rb +1 -1
- data/test/lib/facets/core/hash/test_slice.rb +1 -1
- data/test/lib/facets/core/hash/test_swap.rb +1 -1
- data/test/lib/facets/core/hash/test_swapkey.rb +1 -1
- data/test/lib/facets/core/hash/test_to_h.rb +1 -1
- data/test/lib/facets/core/hash/test_to_ostruct.rb +1 -1
- data/test/lib/facets/core/hash/test_to_ostruct_recurse.rb +1 -1
- data/test/lib/facets/core/hash/test_traverse.rb +1 -1
- data/test/lib/facets/core/hash/test_update_each.rb +1 -1
- data/test/lib/facets/core/hash/test_update_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_update_values.rb +1 -1
- data/test/lib/facets/core/hash/test_weave.rb +1 -1
- data/test/lib/facets/core/integer/test_factorial.rb +1 -1
- data/test/lib/facets/core/integer/test_multiple.rb +1 -1
- data/test/lib/facets/core/integer/test_ordinal.rb +1 -1
- data/test/lib/facets/core/integer/test_times_collect.rb +1 -1
- data/test/lib/facets/core/kernel/test___class__.rb +1 -1
- data/test/lib/facets/core/kernel/test_as.rb +1 -1
- data/test/lib/facets/core/kernel/test_assign_from.rb +1 -1
- data/test/lib/facets/core/kernel/test_assign_with.rb +1 -1
- data/test/lib/facets/core/kernel/test_bool.rb +1 -1
- data/test/lib/facets/core/kernel/test_bug.rb +1 -1
- data/test/lib/facets/core/kernel/test_call_stack.rb +1 -1
- data/test/lib/facets/core/kernel/test_called.rb +1 -1
- data/test/lib/facets/core/kernel/test_constant.rb +1 -1
- data/test/lib/facets/core/kernel/test_copy.rb +1 -1
- data/test/lib/facets/core/kernel/test_deep_copy.rb +1 -1
- data/test/lib/facets/core/kernel/test_demo.rb +1 -1
- data/test/lib/facets/core/kernel/test_fn.rb +1 -1
- data/test/lib/facets/core/kernel/test_generate_method_name.rb +1 -1
- data/test/lib/facets/core/kernel/test_get_by_id.rb +1 -1
- data/test/lib/facets/core/kernel/test_here.rb +1 -1
- data/test/lib/facets/core/kernel/test_in.rb +1 -1
- data/test/lib/facets/core/kernel/test_maybe.rb +1 -1
- data/test/lib/facets/core/kernel/test_metaclass.rb +1 -1
- data/test/lib/facets/core/kernel/test_method.rb +1 -1
- data/test/lib/facets/core/kernel/test_methodname.rb +1 -1
- data/test/lib/facets/core/kernel/test_methods.rb +1 -1
- data/test/lib/facets/core/kernel/test_new.rb +1 -1
- data/test/lib/facets/core/kernel/test_object_class.rb +1 -1
- data/test/lib/facets/core/kernel/test_object_hexid.rb +1 -1
- data/test/lib/facets/core/kernel/test_require_all.rb +1 -1
- data/test/lib/facets/core/kernel/test_require_esc.rb +1 -1
- data/test/lib/facets/core/kernel/test_require_facet.rb +1 -1
- data/test/lib/facets/core/kernel/test_resc.rb +1 -1
- data/test/lib/facets/core/kernel/test_returning.rb +1 -1
- data/test/lib/facets/core/kernel/test_send_as.rb +1 -1
- data/test/lib/facets/core/kernel/test_set_from.rb +1 -1
- data/test/lib/facets/core/kernel/test_set_with.rb +1 -1
- data/test/lib/facets/core/kernel/test_silently.rb +1 -1
- data/test/lib/facets/core/kernel/test_singleton.rb +1 -1
- data/test/lib/facets/core/kernel/test_superior.rb +1 -1
- data/test/lib/facets/core/kernel/test_supermethod.rb +1 -1
- data/test/lib/facets/core/kernel/test_this.rb +1 -1
- data/test/lib/facets/core/kernel/test_to_b.rb +1 -1
- data/test/lib/facets/core/kernel/test_to_bool.rb +1 -1
- data/test/lib/facets/core/kernel/test_uri.rb +1 -1
- data/test/lib/facets/core/kernel/test_val.rb +1 -1
- data/test/lib/facets/core/kernel/test_with_accessor.rb +1 -1
- data/test/lib/facets/core/matchdata/test_match.rb +1 -1
- data/test/lib/facets/core/matchdata/test_matchtree.rb +1 -1
- data/test/lib/facets/core/module/test_abstract.rb +1 -1
- data/test/lib/facets/core/module/test_alias_module_function.rb +1 -1
- data/test/lib/facets/core/module/test_ancestor.rb +1 -1
- data/test/lib/facets/core/module/test_basename.rb +1 -1
- data/test/lib/facets/core/module/test_by_name.rb +1 -1
- data/test/lib/facets/core/module/test_clone_using.rb +1 -1
- data/test/lib/facets/core/module/test_dirname.rb +1 -1
- data/test/lib/facets/core/module/test_equate_on.rb +1 -1
- data/test/lib/facets/core/module/test_generate_instance_method_name.rb +1 -1
- data/test/lib/facets/core/module/test_include_as.rb +1 -1
- data/test/lib/facets/core/module/test_inherit.rb +1 -1
- data/test/lib/facets/core/module/test_initializer.rb +1 -1
- data/test/lib/facets/core/module/test_instance_methods.rb +1 -1
- data/test/lib/facets/core/module/test_integrate.rb +1 -1
- data/test/lib/facets/core/module/test_memoize.rb +1 -1
- data/test/lib/facets/core/module/test_modspace.rb +1 -1
- data/test/lib/facets/core/module/test_namespace.rb +1 -1
- data/test/lib/facets/core/module/test_nesting.rb +1 -1
- data/test/lib/facets/core/module/test_on_included.rb +1 -1
- data/test/lib/facets/core/module/test_redef.rb +1 -1
- data/test/lib/facets/core/module/test_redefine_method.rb +1 -1
- data/test/lib/facets/core/module/test_redirect.rb +1 -1
- data/test/lib/facets/core/module/test_redirect_method.rb +1 -1
- data/test/lib/facets/core/module/test_remove.rb +1 -1
- data/test/lib/facets/core/module/test_rename.rb +1 -1
- data/test/lib/facets/core/module/test_rename_method.rb +1 -1
- data/test/lib/facets/core/module/test_revisal.rb +1 -1
- data/test/lib/facets/core/module/test_shadow_method.rb +1 -1
- data/test/lib/facets/core/module/test_sort_on.rb +1 -1
- data/test/lib/facets/core/module/test_this.rb +1 -1
- data/test/lib/facets/core/module/test_undef.rb +1 -1
- data/test/lib/facets/core/module/test_wrap.rb +1 -1
- data/test/lib/facets/core/module/test_wrap_method.rb +1 -1
- data/test/lib/facets/core/nilclass/test_blank.rb +1 -1
- data/test/lib/facets/core/nilclass/test_empty.rb +1 -1
- data/test/lib/facets/core/nilclass/test_include.rb +1 -1
- data/test/lib/facets/core/nilclass/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/nilclass/test_size.rb +1 -1
- data/test/lib/facets/core/nilclass/test_to_h.rb +1 -1
- data/test/lib/facets/core/numeric/test_approx.rb +1 -1
- data/test/lib/facets/core/numeric/test_ceil_multiple.rb +1 -1
- data/test/lib/facets/core/numeric/test_succ.rb +1 -1
- data/test/lib/facets/core/numeric/test_to_b.rb +1 -1
- data/test/lib/facets/core/ostruct/test___merge__.rb +1 -1
- data/test/lib/facets/core/ostruct/test___update__.rb +1 -1
- data/test/lib/facets/core/ostruct/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/ostruct/test_op_store.rb +1 -1
- data/test/lib/facets/core/proc/test_compose.rb +1 -1
- data/test/lib/facets/core/proc/test_to_method.rb +1 -1
- data/test/lib/facets/core/range/test_to_r.rb +1 -1
- data/test/lib/facets/core/range/test_to_range.rb +1 -1
- data/test/lib/facets/core/range/test_umbrella.rb +1 -1
- data/test/lib/facets/core/range/test_within.rb +1 -1
- data/test/lib/facets/core/regexp/test_arity.rb +1 -1
- data/test/lib/facets/core/regexp/test_to_re.rb +1 -1
- data/test/lib/facets/core/regexp/test_to_regexp.rb +1 -1
- data/test/lib/facets/core/string/self/test_interpolate.rb +1 -1
- data/test/lib/facets/core/string/self/test_patterns.rb +1 -1
- data/test/lib/facets/core/string/self/test_rand_letter.rb +1 -1
- data/test/lib/facets/core/string/test_align_center.rb +1 -1
- data/test/lib/facets/core/string/test_at_rand.rb +1 -1
- data/test/lib/facets/core/string/test_basename.rb +1 -1
- data/test/lib/facets/core/string/test_blank.rb +1 -1
- data/test/lib/facets/core/string/test_bracket.rb +1 -1
- data/test/lib/facets/core/string/test_camelcase.rb +1 -1
- data/test/lib/facets/core/string/test_camelize.rb +1 -1
- data/test/lib/facets/core/string/test_capitalized.rb +1 -1
- data/test/lib/facets/core/string/test_chars.rb +1 -1
- data/test/lib/facets/core/string/test_cmp.rb +1 -1
- data/test/lib/facets/core/string/test_demodulize.rb +1 -1
- data/test/lib/facets/core/string/test_downcase.rb +1 -1
- data/test/lib/facets/core/string/test_dresner.rb +1 -1
- data/test/lib/facets/core/string/test_each_char.rb +1 -1
- data/test/lib/facets/core/string/test_each_word.rb +1 -1
- data/test/lib/facets/core/string/test_first.rb +1 -1
- data/test/lib/facets/core/string/test_fold.rb +1 -1
- data/test/lib/facets/core/string/test_frequency.rb +1 -1
- data/test/lib/facets/core/string/test_humanize.rb +1 -1
- data/test/lib/facets/core/string/test_indent.rb +1 -1
- data/test/lib/facets/core/string/test_index_all.rb +1 -1
- data/test/lib/facets/core/string/test_last.rb +1 -1
- data/test/lib/facets/core/string/test_line_wrap.rb +1 -1
- data/test/lib/facets/core/string/test_lines.rb +1 -1
- data/test/lib/facets/core/string/test_lowercase.rb +1 -1
- data/test/lib/facets/core/string/test_margin.rb +1 -1
- data/test/lib/facets/core/string/test_methodize.rb +1 -1
- data/test/lib/facets/core/string/test_modulize.rb +1 -1
- data/test/lib/facets/core/string/test_mscan.rb +1 -1
- data/test/lib/facets/core/string/test_natcmp.rb +1 -1
- data/test/lib/facets/core/string/test_nchar.rb +1 -1
- data/test/lib/facets/core/string/test_pathize.rb +1 -1
- data/test/lib/facets/core/string/test_pop.rb +1 -1
- data/test/lib/facets/core/string/test_pot.rb +1 -1
- data/test/lib/facets/core/string/test_probability.rb +1 -1
- data/test/lib/facets/core/string/test_push.rb +1 -1
- data/test/lib/facets/core/string/test_quote.rb +1 -1
- data/test/lib/facets/core/string/test_rand_byte.rb +1 -1
- data/test/lib/facets/core/string/test_rand_index.rb +1 -1
- data/test/lib/facets/core/string/test_range.rb +1 -1
- data/test/lib/facets/core/string/test_range_all.rb +1 -1
- data/test/lib/facets/core/string/test_range_of_line.rb +1 -1
- data/test/lib/facets/core/string/test_regesc.rb +1 -1
- data/test/lib/facets/core/string/test_shatter.rb +1 -1
- data/test/lib/facets/core/string/test_shift.rb +1 -1
- data/test/lib/facets/core/string/test_shuffle.rb +1 -1
- data/test/lib/facets/core/string/test_similarity.rb +1 -1
- data/test/lib/facets/core/string/test_singular.rb +1 -1
- data/test/lib/facets/core/string/test_soundex.rb +1 -1
- data/test/lib/facets/core/string/test_succ.rb +1 -1
- data/test/lib/facets/core/string/test_to_a.rb +1 -1
- data/test/lib/facets/core/string/test_to_b.rb +1 -1
- data/test/lib/facets/core/string/test_to_const.rb +1 -1
- data/test/lib/facets/core/string/test_to_date.rb +1 -1
- data/test/lib/facets/core/string/test_to_proc.rb +1 -1
- data/test/lib/facets/core/string/test_to_re.rb +1 -1
- data/test/lib/facets/core/string/test_to_time.rb +1 -1
- data/test/lib/facets/core/string/test_unix_crypt.rb +1 -1
- data/test/lib/facets/core/string/test_unpack.rb +1 -1
- data/test/lib/facets/core/string/test_unshift.rb +1 -1
- data/test/lib/facets/core/string/test_upcase.rb +1 -1
- data/test/lib/facets/core/string/test_whitespace.rb +1 -1
- data/test/lib/facets/core/string/test_word_filter.rb +1 -1
- data/test/lib/facets/core/string/test_word_wrap.rb +1 -1
- data/test/lib/facets/core/string/test_words.rb +1 -1
- data/test/lib/facets/core/symbol/test_camelcase.rb +1 -1
- data/test/lib/facets/core/symbol/test_camelize.rb +1 -1
- data/test/lib/facets/core/symbol/test_capitalize.rb +1 -1
- data/test/lib/facets/core/symbol/test_capitalized.rb +1 -1
- data/test/lib/facets/core/symbol/test_downcase.rb +1 -1
- data/test/lib/facets/core/symbol/test_not.rb +1 -1
- data/test/lib/facets/core/symbol/test_pad.rb +1 -1
- data/test/lib/facets/core/symbol/test_succ.rb +1 -1
- data/test/lib/facets/core/symbol/test_to_const.rb +1 -1
- data/test/lib/facets/core/symbol/test_to_proc.rb +1 -1
- data/test/lib/facets/core/symbol/test_to_str.rb +1 -1
- data/test/lib/facets/core/symbol/test_underscore.rb +1 -1
- data/test/lib/facets/core/symbol/test_upcase.rb +1 -1
- data/test/lib/facets/core/time/test_change.rb +1 -1
- data/test/lib/facets/core/time/test_elapse.rb +1 -1
- data/test/lib/facets/core/time/test_stamp.rb +1 -1
- data/test/lib/facets/core/time/test_to_date.rb +1 -1
- data/test/lib/facets/core/time/test_to_s.rb +1 -1
- data/test/lib/facets/core/time/test_to_time.rb +1 -1
- data/test/lib/facets/more/test_annotation.rb +1 -1
- data/test/lib/facets/more/test_ansicode.rb +1 -1
- data/test/lib/facets/more/test_association.rb +1 -1
- data/test/lib/facets/more/test_basicobject.rb +1 -1
- data/test/lib/facets/more/test_bbcode.rb +1 -1
- data/test/lib/facets/more/test_bitmask.rb +1 -1
- data/test/lib/facets/more/test_bytes.rb +1 -1
- data/test/lib/facets/more/test_classinherit.rb +1 -1
- data/test/lib/facets/more/test_classmethods.rb +1 -1
- data/test/lib/facets/more/test_coroutine.rb +1 -1
- data/test/lib/facets/more/test_crypt.rb +1 -1
- data/test/lib/facets/more/test_dictionary.rb +1 -1
- data/test/lib/facets/more/test_elementor.rb +1 -1
- data/test/lib/facets/more/test_enumerablepass.rb +1 -1
- data/test/lib/facets/more/test_floatstring.rb +1 -1
- data/test/lib/facets/more/test_functor.rb +1 -1
- data/test/lib/facets/more/test_htmlbuilder.rb +38 -0
- data/test/lib/facets/more/test_inheritor.rb +1 -1
- data/test/lib/facets/more/test_interval.rb +1 -1
- data/test/lib/facets/more/test_json.rb +1 -1
- data/test/lib/facets/more/test_lisp.rb +1 -1
- data/test/lib/facets/more/test_lisp_format.rb +1 -1
- data/test/lib/facets/more/test_lrucache.rb +1 -1
- data/test/lib/facets/more/test_mathconstants.rb +1 -1
- data/test/lib/facets/more/test_methodprobe.rb +1 -1
- data/test/lib/facets/more/test_multipliers.rb +1 -1
- data/test/lib/facets/more/test_multiton.rb +1 -2
- data/test/lib/facets/more/test_nackclass.rb +1 -1
- data/test/lib/facets/more/test_nilcomparable.rb +1 -1
- data/test/lib/facets/more/test_openobject.rb +1 -1
- data/test/lib/facets/more/test_overload.rb +1 -1
- data/test/lib/facets/more/test_paramix.rb +1 -1
- data/test/lib/facets/more/test_preinitialize.rb +1 -1
- data/test/lib/facets/more/test_promoteself.rb +1 -1
- data/test/lib/facets/more/test_recorder.rb +1 -1
- data/test/lib/facets/more/test_snapshot.rb +1 -1
- data/test/lib/facets/more/test_statichash.rb +1 -1
- data/test/lib/facets/more/test_syncarray.rb +1 -1
- data/test/lib/facets/more/test_synchash.rb +1 -1
- data/test/lib/facets/more/test_tagiterator.rb +1 -1
- data/test/lib/facets/more/test_timer.rb +1 -1
- data/test/lib/facets/more/test_times.rb +1 -1
- data/test/lib/facets/more/test_tuple.rb +1 -1
- data/test/lib/facets/more/test_typecast.rb +1 -1
- data/test/lib/facets/more/test_uninheritable.rb +1 -1
- data/test/lib/facets/more/test_units.rb +1 -1
- data/test/lib/facets/more/test_xmlbuilder.rb +38 -0
- data/test/lib/facets/more/test_xmlhelper.rb +40 -0
- data/test/lib/facets/more/test_xoxo.rb +1 -1
- data/test/lib/facets/more/test_yamlstruct.rb +1 -1
- metadata +17 -17
- data/lib/facet/module/mattr.rb +0 -1
- data/lib/facet/module/mattr_accessor.rb +0 -1
- data/lib/facet/module/mattr_reader.rb +0 -1
- data/lib/facet/module/mattr_writer.rb +0 -1
- data/lib/facets/core/module/mattr.rb +0 -180
- data/lib/facets/core/module/mattr_accessor.rb +0 -2
- data/lib/facets/core/module/mattr_reader.rb +0 -2
- data/lib/facets/core/module/mattr_writer.rb +0 -2
- data/test/lib/facets/core/array/test_slap.rb +0 -28
- data/test/lib/facets/core/module/test_let.rb +0 -31
- data/test/lib/facets/core/module/test_mattr.rb +0 -71
- data/test/lib/facets/core/string/test_slap.rb +0 -40
- data/test/lib/facets/core/string/test_to_arr.rb +0 -26
@@ -1,20 +1,31 @@
|
|
1
1
|
#--
|
2
|
-
#
|
2
|
+
# BuilderObject
|
3
3
|
# Copyright (c) 2006 Thomas Sawyer
|
4
4
|
#
|
5
5
|
# Ruby License
|
6
6
|
#
|
7
|
+
# This module is free software. You may use, modify, and/or redistribute this
|
8
|
+
# software under the same terms as Ruby.
|
9
|
+
#
|
10
|
+
# This program is distributed in the hope that it will be useful, but WITHOUT
|
11
|
+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
12
|
+
# FOR A PARTICULAR PURPOSE.
|
13
|
+
#
|
14
|
+
# ==========================================================================
|
15
|
+
# Revision Notes
|
16
|
+
# --------------------------------------------------------------------------
|
17
|
+
# 2006-04-18 trans Created.
|
18
|
+
# ==========================================================================
|
7
19
|
#++
|
8
20
|
|
9
|
-
require 'rexml/document'
|
10
21
|
|
11
|
-
require 'facets/
|
12
|
-
require 'facets/
|
13
|
-
|
22
|
+
#require 'facets/more/basicobject'
|
23
|
+
require 'facets/more/functor'
|
24
|
+
|
14
25
|
|
15
26
|
# :title: BuilderObject
|
16
27
|
#
|
17
|
-
# Build
|
28
|
+
# Build content programatically with Ruby and Ruby's blocks.
|
18
29
|
#
|
19
30
|
# Builders can use either an implict or explicit receiver.
|
20
31
|
# Explicit is the default. To use implicit pass the :implicit
|
@@ -31,186 +42,58 @@ require 'facets/more/functor' # already requires basicobject
|
|
31
42
|
# routes all builder method vis the #out method.
|
32
43
|
#
|
33
44
|
# NOTE The name of this method (#out) may be changed.
|
45
|
+
#
|
46
|
+
# AUTHORS:: Thomas Sawyer
|
47
|
+
#
|
34
48
|
|
35
49
|
class BuilderObject < BasicObject
|
36
50
|
|
37
|
-
# Builder mixin.
|
38
|
-
|
39
51
|
def self.builder
|
40
|
-
@builder ||=
|
52
|
+
@builder ||= Class.new
|
41
53
|
end
|
42
54
|
|
43
|
-
def self.builder_include(
|
44
|
-
builder.
|
55
|
+
def self.builder_include( mod )
|
56
|
+
builder.class_eval { include mod }
|
45
57
|
end
|
46
58
|
|
47
|
-
|
48
|
-
|
49
|
-
def builder
|
50
|
-
self.__class__.builder
|
51
|
-
end
|
52
|
-
|
53
|
-
# Prepare builder.
|
54
|
-
|
55
|
-
def initialize( *options )
|
56
|
-
# initialize options
|
57
|
-
@options = (Hash === options.last ? options.pop : {} )
|
58
|
-
options.each { |o| @options[o] = true }
|
59
|
-
# initialize stack
|
59
|
+
def initialize
|
60
60
|
@stack = []
|
61
|
-
|
62
|
-
@target = builder.new( @options )
|
63
|
-
end
|
64
|
-
|
65
|
-
# Core of Builder's functionality.
|
66
|
-
|
67
|
-
def method_missing( tag, *args, &block )
|
68
|
-
if @current and block_given?
|
69
|
-
@stack << @target
|
70
|
-
@target = @current
|
71
|
-
if @options[:implicit]
|
72
|
-
instance_eval( &block )
|
73
|
-
else
|
74
|
-
block.call
|
75
|
-
end
|
76
|
-
@target = @stack.pop
|
77
|
-
end
|
78
|
-
@target
|
79
|
-
end
|
80
|
-
|
81
|
-
# Creates object via builder modules,
|
82
|
-
# stores as current and appends to buffer.
|
83
|
-
|
84
|
-
def +( op, *args, &blk )
|
85
|
-
obj = builder.send( op, *args, &blk )
|
86
|
-
@current = obj
|
87
|
-
@target << obj
|
88
|
-
self
|
61
|
+
@buffer = ''
|
89
62
|
end
|
90
63
|
|
91
|
-
|
92
|
-
|
93
|
-
# raw insert
|
94
|
-
|
95
|
-
def <<( str )
|
96
|
-
r = builder.raw( str )
|
97
|
-
if Array === r
|
98
|
-
r.each { |e| @target << e }
|
99
|
-
else
|
100
|
-
@target << r
|
101
|
-
end
|
102
|
-
self
|
64
|
+
def builder
|
65
|
+
@builder ||= self.__class__.builder.new
|
103
66
|
end
|
104
67
|
|
105
|
-
# Redirection functor.
|
106
|
-
#--
|
107
|
-
# TODO Better name?
|
108
|
-
#++
|
109
|
-
|
110
68
|
def out( str=nil )
|
111
69
|
if str
|
112
|
-
|
70
|
+
@buffer << str
|
113
71
|
else
|
114
72
|
@builder_functor ||= Functor.new( &__method__(:+) )
|
115
73
|
end
|
116
74
|
end
|
117
75
|
|
118
|
-
|
76
|
+
def +( op, *args, &blk )
|
77
|
+
@buffer << builder.send( op, *args, &blk )
|
78
|
+
end
|
119
79
|
|
120
80
|
def to_s
|
121
|
-
@
|
81
|
+
@buffer
|
122
82
|
end
|
123
83
|
|
124
84
|
end
|
125
85
|
|
126
86
|
|
127
|
-
# Some prebuilt mixin modules for creating builders.
|
128
|
-
# These could also be used without builder.
|
129
|
-
|
130
|
-
module BuilderObject::REXML
|
131
87
|
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
end
|
139
|
-
|
140
|
-
# New REXML document.
|
141
|
-
|
142
|
-
def document( options={} )
|
143
|
-
@options = options
|
144
|
-
doc = REXML::Document.new
|
145
|
-
# xml declaration
|
146
|
-
if options[:version]
|
147
|
-
doc << xml(
|
148
|
-
options[:version],
|
149
|
-
options[:encoding],
|
150
|
-
options[:standalone]
|
151
|
-
)
|
152
|
-
end
|
153
|
-
doc
|
154
|
-
end
|
155
|
-
|
156
|
-
# Used for initial buffer value in a builder.
|
157
|
-
|
158
|
-
alias_method :new, :document
|
159
|
-
|
160
|
-
# XML declaration
|
161
|
-
|
162
|
-
def xml( version=nil, *args )
|
163
|
-
REXML::XMLDecl.new( version=nil, *args )
|
164
|
-
end
|
165
|
-
|
166
|
-
def element( tag, *args )
|
167
|
-
keys = (Hash === args.last ? args.pop : {})
|
168
|
-
e = REXML::Element.new( tag )
|
169
|
-
e.add_attributes( keys.keys_to_s )
|
170
|
-
e.add_text(args.join(' ')) unless args.empty?
|
171
|
-
e
|
172
|
-
end
|
173
|
-
|
174
|
-
def instruct( name, *args )
|
175
|
-
keys = (Hash === args.last ? args.pop : {})
|
176
|
-
content = ( args + keys.collect{ |k,v| %{#{k}="#{v}"} } ).join(' ')
|
177
|
-
REXML::Instruction.new( name, content.strip )
|
178
|
-
end
|
179
|
-
alias_method :instruction, :instruct
|
180
|
-
alias_method :pi, :instruct
|
181
|
-
|
182
|
-
def text( str, *args )
|
183
|
-
REXML::Text.new( str, *args )
|
184
|
-
end
|
185
|
-
|
186
|
-
def comment( str, *args )
|
187
|
-
REXML::Comment.new( str, *args )
|
188
|
-
end
|
189
|
-
|
190
|
-
def cdata( str, *args )
|
191
|
-
REXML::CData.new( str, *args )
|
192
|
-
end
|
193
|
-
|
194
|
-
# DTD declarations
|
195
|
-
|
196
|
-
def doctype!( *args )
|
197
|
-
REXML::DocType.new( *args )
|
198
|
-
end
|
199
|
-
|
200
|
-
def element!( *args )
|
201
|
-
REXML::ElementDecl.new( *args )
|
202
|
-
end
|
88
|
+
# _____ _
|
89
|
+
# |_ _|__ ___| |_
|
90
|
+
# | |/ _ \/ __| __|
|
91
|
+
# | | __/\__ \ |_
|
92
|
+
# |_|\___||___/\__|
|
93
|
+
#
|
203
94
|
|
204
|
-
|
205
|
-
REXML::AttlistDecl.new( *args )
|
206
|
-
end
|
95
|
+
# TODO
|
207
96
|
|
208
|
-
|
209
|
-
|
210
|
-
end
|
97
|
+
=begin
|
98
|
+
=end
|
211
99
|
|
212
|
-
def notation!( *args )
|
213
|
-
REXML::NotationDecl.new( *args )
|
214
|
-
end
|
215
|
-
|
216
|
-
end
|
data/lib/facets/more/functor.rb
CHANGED
@@ -0,0 +1,83 @@
|
|
1
|
+
#--
|
2
|
+
# HTMLBuilder
|
3
|
+
# Copyright (c) 2006 Thomas Sawyer
|
4
|
+
#
|
5
|
+
# Ruby License
|
6
|
+
#
|
7
|
+
# This module is free software. You may use, modify, and/or redistribute this
|
8
|
+
# software under the same terms as Ruby.
|
9
|
+
#
|
10
|
+
# This program is distributed in the hope that it will be useful, but WITHOUT
|
11
|
+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
12
|
+
# FOR A PARTICULAR PURPOSE.
|
13
|
+
#
|
14
|
+
# ==========================================================================
|
15
|
+
# Revision History
|
16
|
+
# --------------------------------------------------------------------------
|
17
|
+
# 2006-04-18 trans Created.
|
18
|
+
# ==========================================================================
|
19
|
+
#++
|
20
|
+
|
21
|
+
require 'facets/more/builderobject.rb'
|
22
|
+
require 'facets/more/htmlhelper.rb'
|
23
|
+
|
24
|
+
#:title: HTMLBuilder
|
25
|
+
#
|
26
|
+
# HTMLBuilder follows the _Builder Pattern_ allowing XML markup to be
|
27
|
+
# constructed via Ruby method calls and block structures.
|
28
|
+
#
|
29
|
+
# Author:: Thomas Sawyer
|
30
|
+
# Copright:: Copyright (c) 2006 Thomas Sawyer
|
31
|
+
# License:: Ruby License
|
32
|
+
|
33
|
+
class HTMLBuilder < BuilderObject
|
34
|
+
|
35
|
+
builder_include HTMLHelper
|
36
|
+
|
37
|
+
def method_missing( op, *args, &block )
|
38
|
+
if block_given?
|
39
|
+
@stack << @buffer
|
40
|
+
@buffer = ''
|
41
|
+
body = block.call
|
42
|
+
@buffer = @stack.pop
|
43
|
+
@buffer << builder.element( op, body, *args )
|
44
|
+
else
|
45
|
+
@buffer << builder.element( op, *args )
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
# _____ _
|
54
|
+
# |_ _|__ ___| |_
|
55
|
+
# | |/ _ \/ __| __|
|
56
|
+
# | | __/\__ \ |_
|
57
|
+
# |_|\___||___/\__|
|
58
|
+
#
|
59
|
+
=begin test rdoc
|
60
|
+
|
61
|
+
require 'test/unit'
|
62
|
+
|
63
|
+
class TCHTMLBuilder < Test::Unit::TestCase
|
64
|
+
|
65
|
+
def test_01
|
66
|
+
x = HTMLBuilder.new
|
67
|
+
doc = x.html {
|
68
|
+
x.head {
|
69
|
+
x.title "Test"
|
70
|
+
}
|
71
|
+
x.body {
|
72
|
+
x.p "Hello"
|
73
|
+
x.out.text "Test"
|
74
|
+
}
|
75
|
+
}
|
76
|
+
r = "<html><head><title>Test</title></head><body><p>Hello</p>Test</body></html>"
|
77
|
+
assert_equal( r, doc )
|
78
|
+
assert_equal( r, x.to_s )
|
79
|
+
end
|
80
|
+
|
81
|
+
end
|
82
|
+
|
83
|
+
=end
|
data/lib/facets/more/multiton.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
#--
|
2
2
|
# Multiton
|
3
|
-
#
|
4
3
|
# Copyright (c) 2005 Florian Frank, Thomas Sawyer
|
5
4
|
#
|
6
5
|
# Ruby License
|
@@ -12,9 +11,8 @@
|
|
12
11
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
13
12
|
# FOR A PARTICULAR PURPOSE.
|
14
13
|
#
|
15
|
-
#
|
16
14
|
# ==========================================================================
|
17
|
-
# Revision
|
15
|
+
# Revision Notes
|
18
16
|
# --------------------------------------------------------------------------
|
19
17
|
# 2005-11-27 trans * Simplifed variations to one.
|
20
18
|
# 2005-08-01 trans * Minor modifications to documentation.
|
@@ -208,7 +206,6 @@ end
|
|
208
206
|
|
209
207
|
end
|
210
208
|
|
211
|
-
|
212
209
|
#
|
213
210
|
# EXAMPLE B - MODIFY AN EXISTING CLASS, SHARED FILEHANDLES
|
214
211
|
#
|
@@ -1,13 +1,10 @@
|
|
1
1
|
#--
|
2
|
-
#
|
3
|
-
# Copyright (c) 2006 Thomas Sawyer
|
4
|
-
#
|
5
|
-
# Ruby License
|
6
|
-
#
|
2
|
+
# REXMLBuilder
|
7
3
|
#++
|
8
4
|
|
9
5
|
require 'rexml/document'
|
10
|
-
|
6
|
+
|
7
|
+
require 'facets/more/functor' # already requires basicobject
|
11
8
|
|
12
9
|
# :title: REXMLBuilder
|
13
10
|
#
|
@@ -49,9 +46,7 @@ require 'facets/more/builderobject'
|
|
49
46
|
# the array.
|
50
47
|
#
|
51
48
|
|
52
|
-
class REXMLBuilder <
|
53
|
-
|
54
|
-
builder_include BuilderObject::REXML
|
49
|
+
class REXMLBuilder < BasicObject
|
55
50
|
|
56
51
|
# Output XML document.
|
57
52
|
|
@@ -61,7 +56,56 @@ class REXMLBuilder < BuilderObject
|
|
61
56
|
o
|
62
57
|
end
|
63
58
|
|
64
|
-
#
|
59
|
+
# raw insert
|
60
|
+
|
61
|
+
def <<( str )
|
62
|
+
r = builder.raw( str )
|
63
|
+
if Array === r
|
64
|
+
r.each { |e| @target << e }
|
65
|
+
else
|
66
|
+
@target << r
|
67
|
+
end
|
68
|
+
self
|
69
|
+
end
|
70
|
+
|
71
|
+
# Redirection functor.
|
72
|
+
#--
|
73
|
+
# TODO Better name?
|
74
|
+
#++
|
75
|
+
|
76
|
+
def out( str=nil )
|
77
|
+
if str
|
78
|
+
self << str
|
79
|
+
else
|
80
|
+
@builder_functor ||= Functor.new( &__method__(:+) )
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# text output
|
85
|
+
|
86
|
+
def to_s
|
87
|
+
@target.to_s
|
88
|
+
end
|
89
|
+
|
90
|
+
private
|
91
|
+
|
92
|
+
def builder
|
93
|
+
REXMLUtil
|
94
|
+
end
|
95
|
+
|
96
|
+
# Prepare builder.
|
97
|
+
|
98
|
+
def initialize( *options )
|
99
|
+
# initialize options
|
100
|
+
@options = (Hash === options.last ? options.pop : {} )
|
101
|
+
options.each { |o| @options[o] = true }
|
102
|
+
# initialize stack
|
103
|
+
@stack = []
|
104
|
+
# initialize buffer
|
105
|
+
@target = builder.new( @options )
|
106
|
+
end
|
107
|
+
|
108
|
+
# Reroute -- Core functionality.
|
65
109
|
|
66
110
|
def method_missing( tag, *args, &block )
|
67
111
|
tag = tag.to_s
|
@@ -73,7 +117,119 @@ class REXMLBuilder < BuilderObject
|
|
73
117
|
else
|
74
118
|
out.element( tag, *args )
|
75
119
|
end
|
76
|
-
|
120
|
+
if @current and block_given?
|
121
|
+
@stack << @target
|
122
|
+
@target = @current
|
123
|
+
if @options[:implicit]
|
124
|
+
instance_eval( &block )
|
125
|
+
else
|
126
|
+
block.call
|
127
|
+
end
|
128
|
+
@target = @stack.pop
|
129
|
+
end
|
130
|
+
@target
|
131
|
+
end
|
132
|
+
|
133
|
+
# Creates object via builder module,
|
134
|
+
# stores as current and appends to buffer.
|
135
|
+
|
136
|
+
def +( op, *args, &blk )
|
137
|
+
obj = builder.send( op, *args, &blk )
|
138
|
+
@current = obj
|
139
|
+
@target << obj
|
140
|
+
self
|
141
|
+
end
|
142
|
+
|
143
|
+
end
|
144
|
+
|
145
|
+
# Module provides the build methods in
|
146
|
+
# an independent namespace.
|
147
|
+
|
148
|
+
module REXMLBuilder::REXMLUtil
|
149
|
+
|
150
|
+
extend self
|
151
|
+
|
152
|
+
# Add raw XML markup
|
153
|
+
|
154
|
+
def raw( str )
|
155
|
+
REXML::Document.new( "<root>#{str}</root>" ).root.to_a
|
156
|
+
end
|
157
|
+
|
158
|
+
# New REXML document.
|
159
|
+
|
160
|
+
def document( options={} )
|
161
|
+
#@options = options
|
162
|
+
doc = REXML::Document.new
|
163
|
+
# xml declaration
|
164
|
+
if options[:version]
|
165
|
+
doc << xml(
|
166
|
+
options[:version],
|
167
|
+
options[:encoding],
|
168
|
+
options[:standalone]
|
169
|
+
)
|
170
|
+
end
|
171
|
+
doc
|
172
|
+
end
|
173
|
+
|
174
|
+
# Used for initial taget in builder.
|
175
|
+
alias_method :new, :document
|
176
|
+
|
177
|
+
# XML declaration instruction.
|
178
|
+
|
179
|
+
def xml( version=nil, *args )
|
180
|
+
REXML::XMLDecl.new( version=nil, *args )
|
181
|
+
end
|
182
|
+
|
183
|
+
def element( tag, *args )
|
184
|
+
keys = (Hash === args.last ? args.pop : {})
|
185
|
+
skeys = {}
|
186
|
+
keys.each { |k,v| skeys[k.to_s] = v.to_s }
|
187
|
+
e = REXML::Element.new( tag )
|
188
|
+
e.add_attributes( skeys )
|
189
|
+
e.add_text(args.join(' ')) unless args.empty?
|
190
|
+
e
|
191
|
+
end
|
192
|
+
|
193
|
+
def instruct( name, *args )
|
194
|
+
keys = (Hash === args.last ? args.pop : {})
|
195
|
+
content = ( args + keys.collect{ |k,v| %{#{k}="#{v}"} } ).join(' ')
|
196
|
+
REXML::Instruction.new( name, content.strip )
|
197
|
+
end
|
198
|
+
alias_method :instruction, :instruct
|
199
|
+
alias_method :pi, :instruct
|
200
|
+
|
201
|
+
def text( str, *args )
|
202
|
+
REXML::Text.new( str, *args )
|
203
|
+
end
|
204
|
+
|
205
|
+
def comment( str, *args )
|
206
|
+
REXML::Comment.new( str, *args )
|
207
|
+
end
|
208
|
+
|
209
|
+
def cdata( str, *args )
|
210
|
+
REXML::CData.new( str, *args )
|
211
|
+
end
|
212
|
+
|
213
|
+
# DTD declarations
|
214
|
+
|
215
|
+
def doctype!( *args )
|
216
|
+
REXML::DocType.new( *args )
|
217
|
+
end
|
218
|
+
|
219
|
+
def element!( *args )
|
220
|
+
REXML::ElementDecl.new( *args )
|
221
|
+
end
|
222
|
+
|
223
|
+
def attlist!( *args )
|
224
|
+
REXML::AttlistDecl.new( *args )
|
225
|
+
end
|
226
|
+
|
227
|
+
def entity!( *args )
|
228
|
+
REXML::EntityDecl.new( *args )
|
229
|
+
end
|
230
|
+
|
231
|
+
def notation!( *args )
|
232
|
+
REXML::NotationDecl.new( *args )
|
77
233
|
end
|
78
234
|
|
79
235
|
end
|
@@ -82,7 +238,7 @@ end
|
|
82
238
|
|
83
239
|
# TODO
|
84
240
|
|
85
|
-
|
241
|
+
=begin
|
86
242
|
|
87
243
|
x = REXMLBuilder.new( :version => '1.0' )
|
88
244
|
|
@@ -101,4 +257,4 @@ x.html {
|
|
101
257
|
|
102
258
|
puts x
|
103
259
|
|
104
|
-
|
260
|
+
=end
|