Method: Tml::Tokens::Data.parse
- Defined in:
- lib/tml/tokens/data.rb
.parse(label, opts = {}) ⇒ Object
43 44 45 46 47 48 49 |
# File 'lib/tml/tokens/data.rb', line 43 def self.parse(label, opts = {}) tokens = [] label.scan(expression).uniq.each do |token_array| tokens << self.new(label, token_array.first) end tokens end |