Module: AsciiChem::Transform::Group
- Defined in:
- lib/asciichem/transform.rb
Overview
Maps the literal bracket character to the model's bracket symbol.
Class Method Summary collapse
Class Method Details
.bracket_kind(char) ⇒ Object
503 504 505 506 507 508 509 510 |
# File 'lib/asciichem/transform.rb', line 503 def self.bracket_kind(char) case char when '(' then :paren when '[' then :square when '{' then :brace else :paren end end |