Class: Stretto::Tokens::AttackDecayToken

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/stretto/grammar/tokens/attack_decay_token.rb

Overview

Token result from parsing attack and decay syntax

Examples:

a100d

Instance Method Summary collapse

Instance Method Details

#attackNumericToken, ...

Returns:



10
11
12
# File 'lib/stretto/grammar/tokens/attack_decay_token.rb', line 10

def attack
  _attack.value.wrap if _attack and _attack.text_value.present?
end

#decayNumericToken, ...

Returns:



15
16
17
# File 'lib/stretto/grammar/tokens/attack_decay_token.rb', line 15

def decay
  _decay.value.wrap if _decay and _decay.text_value.present?
end