Class: WLang::Compiler::Autospacing::Unindent

Inherits:
Filter
  • Object
show all
Defined in:
lib/wlang/compiler/autospacing.rb

Overview

class RightStrip

Instance Method Summary collapse

Methods included from Filter::ClassMethods

#recurse_on

Methods included from Filter::InstanceMethods

#recurse

Instance Method Details

#on_static(text) ⇒ Object



54
55
56
# File 'lib/wlang/compiler/autospacing.rb', line 54

def on_static(text)
  [:static, text.gsub(/^  /m, '')]
end