Class: Craftsman::Decorator::Base
- Inherits:
-
Object
- Object
- Craftsman::Decorator::Base
- Defined in:
- lib/craftsman/decorator/base.rb
Direct Known Subclasses
Constant Summary collapse
- FILTER_EXT_MAPPING =
{ 'js' => 'javascript', 'rb' => 'ruby', 'md' => 'markdown', }
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(package) ⇒ Base
constructor
A new instance of Base.
- #process(content) ⇒ Object
Constructor Details
#initialize(package) ⇒ Base
Returns a new instance of Base.
9 10 11 |
# File 'lib/craftsman/decorator/base.rb', line 9 def initialize(package) @package = package end |
Class Method Details
.process(package, content) ⇒ Object
17 18 19 |
# File 'lib/craftsman/decorator/base.rb', line 17 def self.process(package, content) self.new(package).process(content) end |
Instance Method Details
#process(content) ⇒ Object
13 14 15 |
# File 'lib/craftsman/decorator/base.rb', line 13 def process(content) raise 'need be implemented' end |