Class: BitGirder::Core::DefaultObjectPathFormatter
- Inherits:
-
Object
- Object
- BitGirder::Core::DefaultObjectPathFormatter
- Defined in:
- lib/bitgirder/core.rb
Overview
Subclasses can override methods to customize as desired
Instance Method Summary collapse
- #format_key(str, key) ⇒ Object
- #format_list_index(str, indx) ⇒ Object
- #format_path_start(str) ⇒ Object
- #format_separator(str) ⇒ Object
Instance Method Details
#format_key(str, key) ⇒ Object
1311 1312 1313 |
# File 'lib/bitgirder/core.rb', line 1311 def format_key( str, key ) str << key.to_s end |
#format_list_index(str, indx) ⇒ Object
1316 1317 1318 |
# File 'lib/bitgirder/core.rb', line 1316 def format_list_index( str, indx ) str << "[ #{indx} ]" end |
#format_path_start(str) ⇒ Object
1303 |
# File 'lib/bitgirder/core.rb', line 1303 def format_path_start( str ); end |
#format_separator(str) ⇒ Object
1306 1307 1308 |
# File 'lib/bitgirder/core.rb', line 1306 def format_separator( str ) str << "." end |