Class: I18nContextGenerator::AndroidResource::Span
- Inherits:
-
Data
- Object
- Data
- I18nContextGenerator::AndroidResource::Span
- Defined in:
- lib/i18n_context_generator/android_resource.rb
Instance Attribute Summary collapse
-
#base_key ⇒ Object
readonly
Returns the value of attribute base_key.
-
#end_line ⇒ Object
readonly
Returns the value of attribute end_line.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#parent_end_line ⇒ Object
readonly
Returns the value of attribute parent_end_line.
-
#parent_start_line ⇒ Object
readonly
Returns the value of attribute parent_start_line.
-
#resource_type ⇒ Object
readonly
Returns the value of attribute resource_type.
-
#start_line ⇒ Object
readonly
Returns the value of attribute start_line.
Instance Method Summary collapse
Instance Attribute Details
#base_key ⇒ Object (readonly)
Returns the value of attribute base_key
15 16 17 |
# File 'lib/i18n_context_generator/android_resource.rb', line 15 def base_key @base_key end |
#end_line ⇒ Object (readonly)
Returns the value of attribute end_line
15 16 17 |
# File 'lib/i18n_context_generator/android_resource.rb', line 15 def end_line @end_line end |
#key ⇒ Object (readonly)
Returns the value of attribute key
15 16 17 |
# File 'lib/i18n_context_generator/android_resource.rb', line 15 def key @key end |
#parent_end_line ⇒ Object (readonly)
Returns the value of attribute parent_end_line
15 16 17 |
# File 'lib/i18n_context_generator/android_resource.rb', line 15 def parent_end_line @parent_end_line end |
#parent_start_line ⇒ Object (readonly)
Returns the value of attribute parent_start_line
15 16 17 |
# File 'lib/i18n_context_generator/android_resource.rb', line 15 def parent_start_line @parent_start_line end |
#resource_type ⇒ Object (readonly)
Returns the value of attribute resource_type
15 16 17 |
# File 'lib/i18n_context_generator/android_resource.rb', line 15 def resource_type @resource_type end |
#start_line ⇒ Object (readonly)
Returns the value of attribute start_line
15 16 17 |
# File 'lib/i18n_context_generator/android_resource.rb', line 15 def start_line @start_line end |
Instance Method Details
#cover?(line_number) ⇒ Boolean
24 25 26 |
# File 'lib/i18n_context_generator/android_resource.rb', line 24 def cover?(line_number) line_span.cover?(line_number) end |
#line_span ⇒ Object
16 17 18 |
# File 'lib/i18n_context_generator/android_resource.rb', line 16 def line_span start_line..end_line end |
#parent_line_span ⇒ Object
20 21 22 |
# File 'lib/i18n_context_generator/android_resource.rb', line 20 def parent_line_span parent_start_line..parent_end_line end |