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.



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

def node_parent
  @node_parent
end

Instance Method Details

#childrenObject



46
47
48
# File 'lib/scss_lint/sass/script.rb', line 46

def children
  []
end

#lineObject



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

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

#source_rangeObject



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

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