Module: Card::Set::Type::Number
- Extended by:
- Card::Set
- Defined in:
- tmpsets/set/mod007-05_standard/type/number.rb
Instance Method Summary collapse
Methods included from Card::Set
abstract_set?, all_set?, card_accessor, card_reader, card_writer, clean_empty_module_from_hash, clean_empty_modules, define_on_format, ensure_set, extended, format, process_base_module_list, process_base_modules, register_set, register_set_format, shortname, stage_method, view, write_tmp_file
Methods included from Event
Instance Method Details
#valid_number?(string) ⇒ Boolean
13 14 15 16 17 18 19 20 21 |
# File 'tmpsets/set/mod007-05_standard/type/number.rb', line 13 def valid_number?( string ) valid = true begin Kernel.Float( string ) rescue ArgumentError, TypeError valid = false end valid end |