Class: Nanoc::Core::ChangesStream::ChangesListener

Inherits:
Object
  • Object
show all
Defined in:
lib/nanoc/core/changes_stream.rb

Instance Method Summary collapse

Constructor Details

#initialize(y) ⇒ ChangesListener

Returns a new instance of ChangesListener.



7
8
9
# File 'lib/nanoc/core/changes_stream.rb', line 7

def initialize(y)
  @y = y
end

Instance Method Details

#libObject



15
16
17
# File 'lib/nanoc/core/changes_stream.rb', line 15

def lib
  @y << :lib
end

#to_stop(&block) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/nanoc/core/changes_stream.rb', line 19

def to_stop(&block)
  if block_given?
    @to_stop = block
  else
    @to_stop
  end
end

#unknownObject



11
12
13
# File 'lib/nanoc/core/changes_stream.rb', line 11

def unknown
  @y << :unknown
end