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
587 588 589 590 591 592 593 594 |
# File 'lib/asciichem/transform.rb', line 587 def self.bracket_kind(char) case char when '(' then :paren when '[' then :square when '{' then :brace else :paren end end |