Class: Reru::Next

Inherits:
Event
  • Object
show all
Defined in:
lib/reru/next.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Event

#eos?

Constructor Details

#initialize(value) ⇒ Next

Returns a new instance of Next.



6
7
8
# File 'lib/reru/next.rb', line 6

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/reru/next.rb', line 4

def value
  @value
end

Instance Method Details

#next?Boolean

Returns:

  • (Boolean)


10
# File 'lib/reru/next.rb', line 10

def next? ; true ; end

#to_sObject



13
# File 'lib/reru/next.rb', line 13

def to_s ; @value.to_s ; end

#value?Boolean

Returns:

  • (Boolean)


11
# File 'lib/reru/next.rb', line 11

def value? ; true ; end