Class: TimePatterns::UnknownToken

Inherits:
Object
  • Object
show all
Defined in:
lib/todo_time_patterns/tokens.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, start_index) ⇒ UnknownToken

Returns a new instance of UnknownToken.



50
51
52
53
# File 'lib/todo_time_patterns/tokens.rb', line 50

def initialize(value, start_index)
  @value = value
  @start_index = start_index
end

Instance Attribute Details

#start_indexObject (readonly)

Returns the value of attribute start_index.



48
49
50
# File 'lib/todo_time_patterns/tokens.rb', line 48

def start_index
  @start_index
end

#valueObject (readonly)

Returns the value of attribute value.



47
48
49
# File 'lib/todo_time_patterns/tokens.rb', line 47

def value
  @value
end

Instance Method Details

#to_sObject



55
56
57
# File 'lib/todo_time_patterns/tokens.rb', line 55

def to_s
  "{unknown}"
end