Module: Liquidscript::Compiler::Base::Helpers::ClassMethods

Defined in:
lib/liquidscript/compiler/base/helpers.rb

Instance Method Summary collapse

Instance Method Details

#allowableObject



7
8
9
# File 'lib/liquidscript/compiler/base/helpers.rb', line 7

def allowable
  @_allowable ||= {}
end

#always(type) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/liquidscript/compiler/base/helpers.rb', line 11

def always(type)
  case type
  when Hash
    allowable.merge!(type)
  when Symbol
    allowable[type] = type
  end
end