Class: Waw::Wawgen::Project

Inherits:
Object show all
Defined in:
lib/waw/wawgen/project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, folder = nil) ⇒ Project

Creates a project instance



12
13
14
15
# File 'lib/waw/wawgen/project.rb', line 12

def initialize(name, folder=nil)
  @upname, @lowname = name, WLang::encode(name, 'ruby/method-case')
  @folder = folder
end

Instance Attribute Details

#lownameObject (readonly)

Lower case name of the project



9
10
11
# File 'lib/waw/wawgen/project.rb', line 9

def lowname
  @lowname
end

#upnameObject (readonly)

Upper case name of the project



6
7
8
# File 'lib/waw/wawgen/project.rb', line 6

def upname
  @upname
end

Instance Method Details

#rootObject Also known as: folder

Returns root folder



18
19
20
# File 'lib/waw/wawgen/project.rb', line 18

def root
  @folder ||= lowname
end