Sha256: 165f885d53330afb58e20c2b979e5f61c2f6bb062277d1ff7690fd0374b9b218

Contents?: true

Size: 192 Bytes

Versions: 3

Compression:

Stored size: 192 Bytes

Contents

class String
  def to_domain
    Ryodo.parse(self)
  end
  alias_method :ryodo,    :to_domain
  alias_method :to_ryodo, :to_domain

  def valid_domain?
    Ryodo.domain_valid?(self)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ryodo-0.3.2 lib/ryodo/ext/string.rb
ryodo-0.3.1 lib/ryodo/ext/string.rb
ryodo-0.3.0 lib/ryodo/ext/string.rb