class ForwardSlash::DomainPart
Attributes
part[R]
Public Class Methods
new(part)
click to toggle source
# File lib/forward_slash/domain_part.rb, line 7 def initialize(part) @part = part end
Public Instance Methods
-(other)
click to toggle source
# File lib/forward_slash/domain_part.rb, line 11 def -(other) @part += "-#{other.part}" self end
/(other)
click to toggle source
# File lib/forward_slash/domain_part.rb, line 16 def /(other) @part += "/#{other.part}" self end
method_missing(next_domain_part, *args)
click to toggle source
# File lib/forward_slash/domain_part.rb, line 21 def method_missing(next_domain_part, *args) @part += ".#{next_domain_part.to_s}" self end