Class: MetaCL::Program
- Inherits:
-
Object
- Object
- MetaCL::Program
- Defined in:
- lib/metacl/program.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#resources ⇒ Object
Returns the value of attribute resources.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(filename) ⇒ Program
constructor
A new instance of Program.
- #set_platform(platform) ⇒ Object
Constructor Details
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/metacl/program.rb', line 3 def code @code end |
#platform ⇒ Object
Returns the value of attribute platform.
3 4 5 |
# File 'lib/metacl/program.rb', line 3 def platform @platform end |
#resources ⇒ Object
Returns the value of attribute resources.
3 4 5 |
# File 'lib/metacl/program.rb', line 3 def resources @resources end |
Class Method Details
Instance Method Details
#set_platform(platform) ⇒ Object
11 12 13 |
# File 'lib/metacl/program.rb', line 11 def set_platform(platform) @platform = platform end |