Class: Ros::Package
- Inherits:
-
Object
- Object
- Ros::Package
- Defined in:
- lib/ros/ros.rb
Instance Attribute Summary collapse
-
#applied ⇒ Object
Returns the value of attribute applied.
-
#apply ⇒ Object
Returns the value of attribute apply.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #apply_to(box) ⇒ Object
- #configure_with(&b) ⇒ Object
-
#initialize(name) ⇒ Package
constructor
A new instance of Package.
Constructor Details
#initialize(name) ⇒ Package
Returns a new instance of Package.
21 22 23 |
# File 'lib/ros/ros.rb', line 21 def initialize name @name = name end |
Instance Attribute Details
#applied ⇒ Object
Returns the value of attribute applied.
19 20 21 |
# File 'lib/ros/ros.rb', line 19 def applied @applied end |
#apply ⇒ Object
Returns the value of attribute apply.
19 20 21 |
# File 'lib/ros/ros.rb', line 19 def apply @apply end |
#name ⇒ Object
Returns the value of attribute name.
19 20 21 |
# File 'lib/ros/ros.rb', line 19 def name @name end |
Instance Method Details
#apply_to(box) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/ros/ros.rb', line 30 def apply_to box unless applied and applied.call(box) print "applying '#{name}' to '#{box.[:host]}'\n" apply.call box print "done\n" end end |