class Netrc

Defined in:

netrc.cr

Constant Summary

CYGWIN = false
VERSION = "0.11.0"
WINDOWS = {% if flag?(:win32) %}true{% else %}false{% end %}

See http://stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detect-if-ruby-is-running-on-windows

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(path : String, data : Tuple(String, Array(Array(String)))) #

[View source]

Class Method Detail

def self.check_permissions(path) #

[View source]
def self.config #

[View source]
def self.configure(&) #

[View source]
def self.default_path #

[View source]
def self.home_path #

[View source]
def self.lex(lines : Array(String)) #

[View source]
def self.netrc_filename #

[View source]
def self.parse(ts : TokenArray) : Tuple(String, Array(Array(String))) #

[View source]
def self.read(path = default_path) #

[View source]
def self.skip?(s) #

[View source]

Instance Method Detail

def [](k : String) #

[View source]
def []=(k : String, info : Tuple(String, String)) #

[View source]
def delete(key : String) #

[View source]
def each(&block) #

[View source]
def length #

[View source]
def new_item(m : String, l : String, p : String) #

[View source]
def new_item_prefix : String #

[View source]
def new_item_prefix=(new_item_prefix : String) #

[View source]
def save #

[View source]
def unparse #

[View source]