Class: Mayu::CSS::Pos

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



35
36
37
# File 'lib/mayu/css.rb', line 35

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



35
36
37
# File 'lib/mayu/css.rb', line 35

def line
  @line
end

Class Method Details

.from_ext(data) ⇒ Object



36
37
# File 'lib/mayu/css.rb', line 36

def self.from_ext(data) =
new(data[:line], data[:column])