Class: ActiveMutator::Subject

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#byte_rangeObject (readonly)

Returns the value of attribute byte_range

Returns:

  • (Object)

    the current value of byte_range



4
5
6
# File 'lib/active_mutator/subject.rb', line 4

def byte_range
  @byte_range
end

#constant_scopeObject (readonly)

Returns the value of attribute constant_scope

Returns:

  • (Object)

    the current value of constant_scope



4
5
6
# File 'lib/active_mutator/subject.rb', line 4

def constant_scope
  @constant_scope
end

#fileObject (readonly)

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



4
5
6
# File 'lib/active_mutator/subject.rb', line 4

def file
  @file
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



4
5
6
# File 'lib/active_mutator/subject.rb', line 4

def kind
  @kind
end

#line_rangeObject (readonly)

Returns the value of attribute line_range

Returns:

  • (Object)

    the current value of line_range



4
5
6
# File 'lib/active_mutator/subject.rb', line 4

def line_range
  @line_range
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



4
5
6
# File 'lib/active_mutator/subject.rb', line 4

def name
  @name
end

Instance Method Details

#singleton?Boolean

Returns:

  • (Boolean)


5
# File 'lib/active_mutator/subject.rb', line 5

def singleton? = kind == :singleton