class Monofile::Project

nested class

Public Class Methods

new( *args ) click to toggle source
# File lib/monofile/monofile.rb, line 7
def initialize( *args )
  if args.size == 1 && args[0].is_a?( String )
    @name = Mononame.parse( args[0] )
  elsif args.size == 2 && args[0].is_a?(String) && args[1].is_a?(String)
    ## assume [org, name]
    @name = Mononame.new( *args )
  else
    raise ArgumentError, "[MonoProject] one or two string args expected; got: #{args.inspect}"
  end
end

Public Instance Methods

name() click to toggle source
# File lib/monofile/monofile.rb, line 19
def name()    @name.name; end
org() click to toggle source
# File lib/monofile/monofile.rb, line 18
def org()     @name.org; end
to_path() click to toggle source
# File lib/monofile/monofile.rb, line 21
def to_path() @name.to_path; end
to_s() click to toggle source
# File lib/monofile/monofile.rb, line 22
def to_s()    @name.to_s; end