Class: Creamerscript::Sweeteners::Array

Inherits:
Base
  • Object
show all
Defined in:
lib/creamerscript/sweeteners/array.rb

Constant Summary

Constants inherited from Base

Base::SYMBOL

Instance Attribute Summary

Attributes inherited from Base

#source, #substitutions

Instance Method Summary collapse

Methods inherited from Base

#call, #initialize, #substitute, #to_coffee, #token, #tokenize, #type

Constructor Details

This class inherits a constructor from Creamerscript::Sweeteners::Base

Instance Method Details

#patternObject



4
5
6
# File 'lib/creamerscript/sweeteners/array.rb', line 4

def pattern
  /\[[^\[\]]+\]/
end