Module: GraphMediator::Util
- Included in:
- AliasExtension, Proxy
- Defined in:
- lib/graph_mediator.rb
Instance Method Summary collapse
-
#parse_method_punctuation(method) ⇒ Object
Returns an array of [<method>,<punctuation>] from a given method symbol.
Instance Method Details
#parse_method_punctuation(method) ⇒ Object
Returns an array of [<method>,<punctuation>] from a given method symbol.
parse_method_punctuation(:save) => [‘save’,nil] parse_method_punctuation(:save!) => [‘save’,‘!’]
150 151 152 |
# File 'lib/graph_mediator.rb', line 150 def parse_method_punctuation(method) return method.to_s.sub(/([?!=])$/, ''), $1 end |