Class: Ros::Dsl

Inherits:
Object
  • Object
show all
Defined in:
lib/ros/ros.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(package) ⇒ Dsl

Returns a new instance of Dsl.



5
6
7
# File 'lib/ros/ros.rb', line 5

def initialize package
  @package = package
end

Instance Attribute Details

#packageObject (readonly)

Returns the value of attribute package.



3
4
5
# File 'lib/ros/ros.rb', line 3

def package
  @package
end

Instance Method Details

#applied?(&b) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/ros/ros.rb', line 9

def applied? &b        
  package.applied = b
end

#apply(&b) ⇒ Object



13
14
15
# File 'lib/ros/ros.rb', line 13

def apply &b
  package.apply = b
end