Module: AppInfo::Helper::Protobuf
- Included in:
- Protobuf::Resources, Protobuf::Resources::Value
- Defined in:
- lib/app_info/helper/protobuf.rb
Instance Method Summary collapse
Instance Method Details
#reference_segments(value) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/app_info/helper/protobuf.rb', line 5 def reference_segments(value) new_value = value.is_a?(Aapt::Pb::Reference) ? value.name : value return new_value.split('/', 2) if new_value.include?('/') [nil, new_value] end |