Sha256: 1639f545717b86ada8b86a2f3e0a2b9c6eb59af95a8ff283f19076c451aae182

Contents?: true

Size: 192 Bytes

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
ryodo-0.2.2 lib/ryodo/ext/string.rb
ryodo-0.2.0 lib/ryodo/ext/string.rb