Class: Erbside::Bash

Inherits:
Inline show all
Defined in:
lib/erbside/inline/bash.rb

Overview

Bash Adapter

Constant Summary collapse

EXTENSIONS =
%w{.sh}

Constants inherited from Inline

Inline::TAG

Instance Attribute Summary

Attributes inherited from Inline

#context, #file, #result, #type

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Inline

#block_match, #block_parts, #changed?, #content, #exist?, extension_list, factory, #format_block, #format_side, inherited, #initialize, #line_match, map, #output, register, #relative_output, #remarker_multiline, #render, #render_blocks, #render_result, #render_sides, #render_template, #save

Constructor Details

This class inherits a constructor from Erbside::Inline

Class Method Details

.extensionsObject



11
12
13
# File 'lib/erbside/inline/bash.rb', line 11

def self.extensions
  EXTENSIONS
end

Instance Method Details

#remarkerObject



16
17
18
# File 'lib/erbside/inline/bash.rb', line 16

def remarker
  '#'
end

#remarker_block_beginObject



21
22
23
# File 'lib/erbside/inline/bash.rb', line 21

def remarker_block_begin
  '#=begin'
end

#remarker_block_endObject



26
27
28
# File 'lib/erbside/inline/bash.rb', line 26

def remarker_block_end
  '#=end'
end