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


38
39
40
# File 'lib/scss_lint/sass/script.rb', line 38

def node_parent
  @node_parent
end

Instance Method Details

#childrenObject


40
41
42
# File 'lib/scss_lint/sass/script.rb', line 40

def children
  []
end

#lineObject


44
45
46
# File 'lib/scss_lint/sass/script.rb', line 44

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

#source_rangeObject


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

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