Class: Fife::Operations::Name

Inherits:
Object
  • Object
show all
Defined in:
lib/fife/operations/name.rb

Instance Method Summary collapse

Constructor Details

#initialize(naming) ⇒ Name

Returns a new instance of Name.



5
6
7
# File 'lib/fife/operations/name.rb', line 5

def initialize(naming)
  @naming = naming
end

Instance Method Details

#call(io) ⇒ Object



9
10
11
12
13
# File 'lib/fife/operations/name.rb', line 9

def call(io)
  io.extend(Fife::HasName)
  io.name = @naming.call(io)
  io
end