Class: ActiveMutator::Subject
- Inherits:
-
Data
- Object
- Data
- ActiveMutator::Subject
- Defined in:
- lib/active_mutator/subject.rb
Overview
A mutable unit: one method definition.
byte_range/line_range cover the whole def ... end.
Instance Attribute Summary collapse
-
#byte_range ⇒ Object
readonly
Returns the value of attribute byte_range.
-
#constant_scope ⇒ Object
readonly
Returns the value of attribute constant_scope.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#line_range ⇒ Object
readonly
Returns the value of attribute line_range.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#byte_range ⇒ Object (readonly)
Returns the value of attribute byte_range
4 5 6 |
# File 'lib/active_mutator/subject.rb', line 4 def byte_range @byte_range end |
#constant_scope ⇒ Object (readonly)
Returns the value of attribute constant_scope
4 5 6 |
# File 'lib/active_mutator/subject.rb', line 4 def constant_scope @constant_scope end |
#file ⇒ Object (readonly)
Returns the value of attribute file
4 5 6 |
# File 'lib/active_mutator/subject.rb', line 4 def file @file end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
4 5 6 |
# File 'lib/active_mutator/subject.rb', line 4 def kind @kind end |
#line_range ⇒ Object (readonly)
Returns the value of attribute line_range
4 5 6 |
# File 'lib/active_mutator/subject.rb', line 4 def line_range @line_range end |
#name ⇒ Object (readonly)
Returns the value of attribute name
4 5 6 |
# File 'lib/active_mutator/subject.rb', line 4 def name @name end |
Instance Method Details
#singleton? ⇒ Boolean
5 |
# File 'lib/active_mutator/subject.rb', line 5 def singleton? = kind == :singleton |