Class: Plumb::Naming::Name

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

Instance Method Summary collapse

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_sObject



65
# File 'lib/plumb/composable.rb', line 65

def to_s = @name