This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Parser | |
class Error < StandardError; end | |
def initialize(row) | |
raise ArgumentError unless row.kind_of?(String) | |
CSV.parse(row) do |i| | |
@row_csv = i.map(&:freeze).freeze | |
end | |
raise Error, "Incorrect Format" if @row_csv.size > 16 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Mailman | |
attr_reader :latitude_s, :longitude_s, :mjma, :depth | |
def initialize(latitude_s, longitude_s, mjma, depth) | |
@latitude_s = latitude_s | |
@longitude_s = longitude_s | |
@mjma = mjma | |
@depth = depth | |
@users = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl_check () | |
{ | |
echo "Checking for curl..." | |
if command -v curl > /dev/null; then | |
echo "Detected curl..." | |
else | |
echo "Installing curl..." |
OlderNewer