Class: Mayu::CSS::Loc
- Inherits:
-
Data
- Object
- Data
- Mayu::CSS::Loc
- Defined in:
- lib/mayu/css.rb
Instance Attribute Summary collapse
-
#end ⇒ Object
readonly
Returns the value of attribute end.
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#start ⇒ Object
readonly
Returns the value of attribute start.
Class Method Summary collapse
Instance Attribute Details
#end ⇒ Object (readonly)
Returns the value of attribute end
26 27 28 |
# File 'lib/mayu/css.rb', line 26 def end @end end |
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path
26 27 28 |
# File 'lib/mayu/css.rb', line 26 def file_path @file_path end |
#start ⇒ Object (readonly)
Returns the value of attribute start
26 27 28 |
# File 'lib/mayu/css.rb', line 26 def start @start end |
Class Method Details
.from_ext(data) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/mayu/css.rb', line 27 def self.from_ext(data) = new( file_path: data[:filePath], start: Pos.from_ext(data[:start]), end: Pos.from_ext(data[:end]), ) |