Class: Klenod::Build::Plugins::CSSPlugin::Loc

Inherits:
Data
  • Object
show all
Defined in:
lib/klenod/plugin/css/transformer.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#endObject (readonly)

Returns the value of attribute end

Returns:

  • (Object)

    the current value of end



26
27
28
# File 'lib/klenod/plugin/css/transformer.rb', line 26

def end
  @end
end

#file_pathObject (readonly)

Returns the value of attribute file_path

Returns:

  • (Object)

    the current value of file_path



26
27
28
# File 'lib/klenod/plugin/css/transformer.rb', line 26

def file_path
  @file_path
end

#startObject (readonly)

Returns the value of attribute start

Returns:

  • (Object)

    the current value of start



26
27
28
# File 'lib/klenod/plugin/css/transformer.rb', line 26

def start
  @start
end

Class Method Details

.from_ext(data) ⇒ Object



27
28
29
30
31
32
# File 'lib/klenod/plugin/css/transformer.rb', line 27

def self.from_ext(data) =
new(
  file_path: data.fetch("filePath"),
  start: Pos.from_ext(data.fetch("start")),
  end: Pos.from_ext(data.fetch("end"))
)