Class: Plumb::Naming::Name
- Inherits:
-
Object
- Object
- Plumb::Naming::Name
- Defined in:
- lib/plumb/composable.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ Name
constructor
A new instance of Name.
- #set(n) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ Name
Returns a new instance of Name.
61 62 63 |
# File 'lib/plumb/composable.rb', line 61 def initialize(name) @name = name end |
Instance Method Details
#set(n) ⇒ Object
67 68 69 70 |
# File 'lib/plumb/composable.rb', line 67 def set(n) @name = n self end |
#to_s ⇒ Object
65 |
# File 'lib/plumb/composable.rb', line 65 def to_s = @name |