Method: Typingpool::Project#initialize
- Defined in:
- lib/typingpool/project.rb
#initialize(name, config = Config.file) ⇒ Project
Constructor. Takes the project name and an optional Config instance (default is the default Config.file). Project does not have to exist locally or remotely.
32 33 34 35 36 |
# File 'lib/typingpool/project.rb', line 32 def initialize(name, config=Config.file) Local.valid_name?(name) or raise Error::Argument::Format, "Must be a valid name for a directory in the local filesystem. Eliminate '/' or any other illegal character." @name = name @config = config end |