Class: Picobox::Project
- Inherits:
-
Object
- Object
- Picobox::Project
- Includes:
- Utils::Output, Utils::Visitable
- Defined in:
- lib/picobox/project.rb
Instance Attribute Summary collapse
-
#os ⇒ Object
readonly
Returns the value of attribute os.
Instance Method Summary collapse
- #init ⇒ Object
-
#initialize(os) ⇒ Project
constructor
A new instance of Project.
Methods included from Utils::Output
#display_error, #display_info, #display_line, #display_status
Methods included from Utils::Visitable
Constructor Details
#initialize(os) ⇒ Project
Returns a new instance of Project.
8 9 10 |
# File 'lib/picobox/project.rb', line 8 def initialize(os) @os = os end |
Instance Attribute Details
#os ⇒ Object (readonly)
Returns the value of attribute os.
6 7 8 |
# File 'lib/picobox/project.rb', line 6 def os @os end |
Instance Method Details
#init ⇒ Object
12 13 14 15 16 17 |
# File 'lib/picobox/project.rb', line 12 def init accept(Commands::InitializeProject.new) rescue StandardError => e display_error e exit 1 end |