Package comodit_client :: Package api :: Module files :: Class Delimiter

Class Delimiter


A delimiter is associated to a File and represents the strings that have to be put before and after variable names in file's content. For instance, default delimiter start is '${' and default delimiter end is '}', therefore a file containing a variable called 'foo' will contain the following string: '${foo}'.

Instance Methods
 
show(self, indent=0)
Prints delimiter's representation to standard output in a user-friendly way.

Inherited from util.json_wrapper.JsonWrapper: __init__, dump_json, get_json, get_real_json, load_json, print_json, set_json

Inherited from object: __long__, __native__, __nonzero__, __unicode__, next

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
string start
Delimiter's start.
string end
Delimiter's end.

Inherited from object: __class__

Method Details

show(self, indent=0)

 

Prints delimiter's representation to standard output in a user-friendly way.

Parameters:
  • indent (int) - The number of spaces to put in front of each displayed line.

Property Details

start

Delimiter's start.

Get Method:
unreachable.start(self) - Delimiter's start.
Set Method:
unreachable.start(self, start) - Sets delimiter's start.
Type:
string

end

Delimiter's end.

Get Method:
unreachable.end(self) - Delimiter's end.
Set Method:
unreachable.end(self, end) - Sets delimiter's end.
Type:
string