Class: Phony::NationalSplitters::DSL

Inherits:
Object
  • Object
show all
Defined in:
lib/phony/national_splitters/dsl.rb

Overview

TODO

Direct Known Subclasses

Default, Fixed

Instance Method Summary collapse

Instance Method Details

#>>(local_splitter) ⇒ Object


11
12
13
14
15
16
17
18
# File 'lib/phony/national_splitters/dsl.rb', line 11

def >> local_splitter
  if local_splitter.respond_to? :split
    country_for local_splitter
  else
    local_splitter.national_splitter = self
    local_splitter
  end
end

#country_for(local_splitter) ⇒ Object


20
21
22
# File 'lib/phony/national_splitters/dsl.rb', line 20

def country_for local_splitter
  Phony::Country.new Phony::NationalCode.new(self, local_splitter)
end

#reservedObject


24
25
26
# File 'lib/phony/national_splitters/dsl.rb', line 24

def reserved
  
end