class Tokenizer2fa::Token::State
Public Class Methods
new(state)
click to toggle source
# File lib/tokenizer2fa/token/state.rb, line 4 def initialize state @state = state end
Public Instance Methods
is_accepted?()
click to toggle source
# File lib/tokenizer2fa/token/state.rb, line 12 def is_accepted? @state == 'accepted' end
is_pending?()
click to toggle source
# File lib/tokenizer2fa/token/state.rb, line 8 def is_pending? @state == 'pending' end
to_s()
click to toggle source
# File lib/tokenizer2fa/token/state.rb, line 16 def to_s @state end