Class: CSS::Nodes::Function

Inherits:
Data
  • Object
show all
Defined in:
lib/css/nodes.rb

Overview

A function reference like ‘rgb(255, 0, 0)`. `value` is an array of component values.

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



23
24
25
# File 'lib/css/nodes.rb', line 23

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



23
24
25
# File 'lib/css/nodes.rb', line 23

def value
  @value
end