Module: Ppr
- Defined in:
- lib/ppr.rb,
lib/ppr/version.rb,
lib/ppr/ppr_core.rb more...
Overview
Module including the classes implementing the preprocessor in Ruby.
Usage:
ppr = Ppr::Preprocessor.new(<some options>)
ppr.preprocess(<input stream to preprocess>,
<output stream where to write the preprocessing result>)}
Defined Under Namespace
Classes: Assign, If, LineNumber, Load, LoadRequire, Macro, Preprocessor, Require
Constant Summary collapse
- VERSION =
"0.0.8"
Class Method Summary collapse
-
.to_attribute(name) ⇒ Object
Converts a
name
to an attribute symbol.
Class Method Details
permalink .to_attribute(name) ⇒ Object
Converts a name
to an attribute symbol.
14 15 16 17 |
# File 'lib/ppr/ppr_core.rb', line 14 def Ppr.to_attribute(name) name = name.to_s (name.start_with?("@") ? name : "@" + name).to_sym end |