Module: HooplaSalesforce::Utils
- Included in:
- PackageGenerator, Rake::DeployTask
- Defined in:
- lib/hoopla_salesforce/utils.rb
Instance Method Summary collapse
Instance Method Details
#extract_class_name(body) ⇒ Object
3 4 5 |
# File 'lib/hoopla_salesforce/utils.rb', line 3 def extract_class_name(body) (match = body.match(/\bclass\s+(\w+)/)) && match[1] end |
#extract_trigger_name(body) ⇒ Object
7 8 9 |
# File 'lib/hoopla_salesforce/utils.rb', line 7 def extract_trigger_name(body) (match = body.match(/\btrigger\s+(\w+)\s/)) && match[1] end |