Module: Treat::Proxies::String

Includes:
Proxy
Defined in:
lib/treat/proxies/string.rb

Overview

Install Treat functions on String objects.

Instance Method Summary collapse

Methods included from Proxy

#method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Treat::Proxies::Proxy

Instance Method Details

#to_entityObject

Return the entity corresponding to the string.



8
9
10
# File 'lib/treat/proxies/string.rb', line 8

def to_entity
  Treat::Entities::Entity.from_string(self)
end