Class: Treat::Entities::Url

Inherits:
Token show all
Defined in:
lib/treat/entities/entities.rb

Overview

Represents a url. This is (imperfectly) defined as /^(http|https):// ([-.]1)*.[a-z]2,5 (([0-9]1,5)?/.*)?$/ix

Constant Summary

Constants included from Entity::Buildable

Entity::Buildable::AcceptedFormats, Entity::Buildable::EmailRegexp, Entity::Buildable::Enclitics, Entity::Buildable::NumberRegexp, Entity::Buildable::PunctRegexp, Entity::Buildable::Reserved, Entity::Buildable::UriRegexp, Entity::Buildable::WordRegexp

Instance Attribute Summary

Attributes inherited from Entity

#type

Method Summary

Methods inherited from Entity

#<<, #initialize, #invalid_call, #method_missing

Methods included from Entity::Delegatable

#add_presets, #add_workers, #call_worker, #find_worker, #find_worker_for_language, #worker_not_found

Methods included from Entity::Debuggable

#print_debug

Methods included from Entity::Buildable

#anything_from_string, #build, #check_encoding, #create_collection, #from_array, #from_db, #from_file, #from_folder, #from_numeric, #from_raw_file, #from_serialized_file, #from_string, #from_url, #group_from_string, #is_serialized_file?, #token_from_string, #zone_from_string

Methods included from Entity::Comparable

#compare_with

Methods included from Entity::Exportable

#export

Methods included from Entity::Iterable

#ancestor_with_feature, #ancestor_with_type, #ancestors_with_type, #each_ancestor, #each_entity, #entities_with_category, #entities_with_feature, #entities_with_types, #num_children_with_feature

Methods included from Entity::Checkable

#check_has, #check_hasnt_children

Methods included from Entity::Stringable

#implode, #inspect, #print_tree, #short_value, #to_a, #to_s, #to_string

Methods included from Entity::Magical

#first_but_warn, #magic

Methods included from Entity::Countable

#count, #frequency_in, #frequency_of, #position, #position_from_end

Methods included from Entity::Applicable

#apply, #do_task, #get_group

Methods included from Entity::Registrable

#register, #registry

Constructor Details

This class inherits a constructor from Treat::Entities::Entity

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Treat::Entities::Entity