Class: Value::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/scss_lint/sass/script.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#node_parentObject

Returns the value of attribute node_parent.



48
49
50
# File 'lib/scss_lint/sass/script.rb', line 48

def node_parent
  @node_parent
end

Instance Method Details

#childrenObject



50
51
52
# File 'lib/scss_lint/sass/script.rb', line 50

def children
  []
end

#lineObject



54
55
56
# File 'lib/scss_lint/sass/script.rb', line 54

def line
  @line || (node_parent && node_parent.line)
end

#source_rangeObject



58
59
60
# File 'lib/scss_lint/sass/script.rb', line 58

def source_range
  @source_range || (node_parent && node_parent.source_range)
end