Module: LocalPostal

Defined in:
lib/local_postal.rb,
lib/local_postal/version.rb

Defined Under Namespace

Classes: Address, Format

Constant Summary collapse

VERSION =
'0.1.1'

Class Method Summary collapse

Class Method Details

.rootString

Gets the path that the gem was installed in. This is used mainly to read configuration files.

Returns:

  • (String)

    The path the gem is installed in.



15
16
17
# File 'lib/local_postal.rb', line 15

def self.root
  @root ||= File.expand_path(File.join('..', '..'), __FILE__)
end