SYMBOL INDEX (247 symbols across 17 files) FILE: lib/css_parser.rb type CssParser (line 15) | module CssParser function merge (line 54) | def self.merge(*rule_sets) function calculate_specificity (line 109) | def self.calculate_specificity(selector) function convert_uris (line 133) | def self.convert_uris(css, base_uri) function sanitize_media_query (line 150) | def self.sanitize_media_query(raw) FILE: lib/css_parser/parser.rb type CssParser (line 5) | module CssParser class RemoteFileError (line 7) | class RemoteFileError < IOError; end class CircularReferenceError (line 10) | class CircularReferenceError < StandardError; end class Parser (line 20) | class Parser method initialize (line 34) | def initialize(options = {}) method find_by_selector (line 72) | def find_by_selector(selector, media_types = :all) method find_rule_sets (line 82) | def find_rule_sets(selectors, media_types = :all) method add_block! (line 117) | def add_block!(block, options = {}) method add_rule! (line 172) | def add_rule!(*args, selectors: nil, block: nil, filename: nil, offs... method add_rule_with_offsets! (line 209) | def add_rule_with_offsets!(selectors, declarations, filename, offset... method add_rule_set! (line 220) | def add_rule_set!(ruleset, media_types = :all) method remove_rule_set! (line 232) | def remove_rule_set!(ruleset, media_types = :all) method each_rule_set (line 245) | def each_rule_set(media_types = :all) # :yields: rule_set, media_types method to_h (line 257) | def to_h(which_media = :all) method each_selector (line 281) | def each_selector(all_media_types = :all, options = {}) # :yields: s... method to_s (line 292) | def to_s(which_media = :all) method rules_by_media_query (line 323) | def rules_by_media_query method compact! (line 338) | def compact! # :nodoc: method parse_block_into_rule_sets! (line 342) | def parse_block_into_rule_sets!(block, options = {}) # :nodoc: method load_uri! (line 489) | def load_uri!(uri, options = {}, deprecated = nil) method load_file! (line 519) | def load_file!(file_name, options = {}, deprecated = nil) method load_string! (line 544) | def load_string!(src, options = {}, deprecated = nil) method circular_reference_check (line 566) | def circular_reference_check(path) # rubocop:disable Naming/Predicat... method ignore_pattern (line 581) | def ignore_pattern(css, regex, options) method cleanup_block (line 592) | def cleanup_block(block, options = {}) # :nodoc: method read_remote_file (line 613) | def read_remote_file(uri) # :nodoc: method save_folded_declaration (line 692) | def save_folded_declaration(block_hash, folded_declaration) # :nodoc: method get_folded_declaration (line 697) | def get_folded_declaration(block_hash) # :nodoc: method reset! (line 701) | def reset! # :nodoc: method css_node_to_h (line 710) | def css_node_to_h(hash, key, val) FILE: lib/css_parser/regexps.rb type CssParser (line 3) | module CssParser function regex_possible_values (line 4) | def self.regex_possible_values(*values) FILE: lib/css_parser/rule_set.rb type CssParser (line 5) | module CssParser class RuleSet (line 6) | class RuleSet class Declarations (line 37) | class Declarations class Value (line 38) | class Value method initialize (line 42) | def initialize(value, important: nil) method value= (line 47) | def value=(value) method to_s (line 56) | def to_s method == (line 60) | def ==(other) method initialize (line 71) | def initialize(declarations = {}) method []= (line 95) | def []=(property, value) method [] (line 112) | def [](property) method key? (line 117) | def key?(property) method size (line 121) | def size method delete (line 130) | def delete(property) method replace_declaration! (line 148) | def replace_declaration!(property, replacements, preserve_importan... method to_s (line 203) | def to_s(options = {}) method == (line 214) | def ==(other) method normalize_property (line 228) | def normalize_property(property) method initialize (line 257) | def initialize(*args, selectors: nil, block: nil, offset: nil, filen... method get_value (line 294) | def get_value(property) method each_selector (line 310) | def each_selector(options = {}) # :yields: selector, declarations, s... method each_declaration (line 320) | def each_declaration # :yields: property, value, is_important method declarations_to_s (line 327) | def declarations_to_s(options = {}) method to_s (line 332) | def to_s method expand_shorthand! (line 337) | def expand_shorthand! method expand_background_shorthand! (line 350) | def expand_background_shorthand! # :nodoc: method extract_background_size_from (line 372) | def extract_background_size_from(value) method expand_border_shorthand! (line 380) | def expand_border_shorthand! # :nodoc: method expand_dimensions_shorthand! (line 398) | def expand_dimensions_shorthand! # :nodoc: method expand_font_shorthand! (line 435) | def expand_font_shorthand! # :nodoc: method expand_list_style_shorthand! (line 490) | def expand_list_style_shorthand! # :nodoc: method create_shorthand! (line 510) | def create_shorthand! method create_shorthand_properties! (line 520) | def create_shorthand_properties!(properties, shorthand_property) # :... method create_background_shorthand! (line 544) | def create_background_shorthand! # :nodoc: method create_border_shorthand! (line 561) | def create_border_shorthand! # :nodoc: method create_dimensions_shorthand! (line 583) | def create_dimensions_shorthand! # :nodoc: method create_font_shorthand! (line 607) | def create_font_shorthand! # :nodoc: method create_list_style_shorthand! (line 634) | def create_list_style_shorthand! # :nodoc: method compute_dimensions_shorthand (line 642) | def compute_dimensions_shorthand(values) method parse_declarations! (line 655) | def parse_declarations!(block) # :nodoc: method unmatched_open_parenthesis? (line 683) | def unmatched_open_parenthesis?(declarations) method parse_selectors! (line 690) | def parse_selectors!(selectors) # :nodoc: method split_value_preserving_function_whitespace (line 698) | def split_value_preserving_function_whitespace(value) FILE: lib/css_parser/version.rb type CssParser (line 3) | module CssParser FILE: test/rule_set/declarations/test_value.rb class RuleSetProperyTest (line 7) | class RuleSetProperyTest < Minitest::Test FILE: test/rule_set/test_declarations.rb class RuleSetDeclarationsTest (line 5) | class RuleSetDeclarationsTest < Minitest::Test FILE: test/test_css_parser_basic.rb class CssParserBasicTests (line 6) | class CssParserBasicTests < Minitest::Test method setup (line 9) | def setup method test_finding_by_selector (line 19) | def test_finding_by_selector method test_adding_block (line 27) | def test_adding_block method test_adding_block_without_closing_brace (line 32) | def test_adding_block_without_closing_brace method test_adding_a_rule (line 37) | def test_adding_a_rule method test_adding_a_rule_set (line 42) | def test_adding_a_rule_set method test_removing_a_rule_set (line 48) | def test_removing_a_rule_set method test_toggling_uri_conversion (line 56) | def test_toggling_uri_conversion method test_converting_to_hash (line 74) | def test_converting_to_hash FILE: test/test_css_parser_loading.rb class CssParserLoadingTests (line 6) | class CssParserLoadingTests < Minitest::Test method setup (line 10) | def setup method teardown (line 39) | def teardown method test_loading_301_redirect (line 45) | def test_loading_301_redirect method test_loading_302_redirect (line 50) | def test_loading_302_redirect method test_loading_a_local_file (line 55) | def test_loading_a_local_file method test_loading_a_local_file_with_scheme (line 61) | def test_loading_a_local_file_with_scheme method test_loading_a_remote_file (line 67) | def test_loading_a_remote_file method test_loading_a_remote_file_over_ssl (line 73) | def test_loading_a_remote_file_over_ssl method test_loading_a_string (line 78) | def test_loading_a_string method test_following_at_import_rules_local (line 83) | def test_following_at_import_rules_local method test_following_at_import_rules_remote (line 97) | def test_following_at_import_rules_remote method test_imports_disabled (line 110) | def test_imports_disabled method test_following_remote_import_rules (line 124) | def test_following_remote_import_rules method test_following_badly_escaped_import_rules (line 132) | def test_following_badly_escaped_import_rules method test_loading_malformed_content_strings (line 140) | def test_loading_malformed_content_strings method test_loading_malformed_css_brackets (line 148) | def test_loading_malformed_css_brackets method test_following_at_import_rules_from_add_block (line 159) | def test_following_at_import_rules_from_add_block method test_importing_with_media_types (line 168) | def test_importing_with_media_types method test_local_circular_reference_exception (line 176) | def test_local_circular_reference_exception method test_remote_circular_reference_exception (line 182) | def test_remote_circular_reference_exception method test_suppressing_circular_reference_exceptions (line 188) | def test_suppressing_circular_reference_exceptions method test_toggling_not_found_exceptions (line 194) | def test_toggling_not_found_exceptions FILE: test/test_css_parser_media_types.rb class CssParserMediaTypesTests (line 6) | class CssParserMediaTypesTests < Minitest::Test method setup (line 9) | def setup method test_that_media_types_dont_include_all (line 13) | def test_that_media_types_dont_include_all method test_finding_by_media_type (line 27) | def test_finding_by_media_type method test_with_parenthesized_media_features (line 49) | def test_with_parenthesized_media_features method test_finding_by_multiple_media_types (line 68) | def test_finding_by_multiple_media_types method test_adding_block_with_media_types (line 84) | def test_adding_block_with_media_types method test_adding_block_with_media_types_followed_by_general_rule (line 93) | def test_adding_block_with_media_types_followed_by_general_rule method test_adding_block_and_limiting_media_types1 (line 105) | def test_adding_block_and_limiting_media_types1 method test_adding_block_and_limiting_media_types2 (line 116) | def test_adding_block_and_limiting_media_types2 method test_adding_block_and_limiting_media_types (line 127) | def test_adding_block_and_limiting_media_types method test_adding_rule_set_with_media_type (line 137) | def test_adding_rule_set_with_media_type method test_adding_rule_set_with_media_query (line 143) | def test_adding_rule_set_with_media_query method test_selecting_with_all_media_types (line 149) | def test_selecting_with_all_media_types method test_to_s_includes_media_queries (line 154) | def test_to_s_includes_media_queries FILE: test/test_css_parser_misc.rb class CssParserTests (line 6) | class CssParserTests < Minitest::Test method setup (line 9) | def setup method test_utf8 (line 13) | def test_utf8 method test_at_page_rule (line 23) | def test_at_page_rule method test_should_ignore_comments (line 39) | def test_should_ignore_comments method test_parsing_blocks (line 64) | def test_parsing_blocks method test_ignoring_malformed_declarations (line 97) | def test_ignoring_malformed_declarations method test_multiline_declarations (line 116) | def test_multiline_declarations method test_find_rule_sets (line 135) | def test_find_rule_sets method test_calculating_specificity (line 152) | def test_calculating_specificity method test_converting_uris (line 172) | def test_converting_uris method test_ruleset_with_braces (line 190) | def test_ruleset_with_braces method test_content_with_data (line 210) | def test_content_with_data method test_enumerator_empty (line 215) | def test_enumerator_empty method test_enumerator_nonempty (line 219) | def test_enumerator_nonempty method with_value_exception (line 230) | def with_value_exception method test_catching_argument_exceptions_for_add_rule (line 236) | def test_catching_argument_exceptions_for_add_rule method test_catching_argument_exceptions_for_add_rule_positional (line 248) | def test_catching_argument_exceptions_for_add_rule_positional method test_catching_argument_exceptions_for_add_rule_with_offsets (line 267) | def test_catching_argument_exceptions_for_add_rule_with_offsets FILE: test/test_css_parser_offset_capture.rb class CssParserOffsetCaptureTests (line 6) | class CssParserOffsetCaptureTests < Minitest::Test method setup (line 9) | def setup method test_capturing_offsets_for_local_file (line 13) | def test_capturing_offsets_for_local_file method test_capturing_offsets_from_remote_file (line 31) | def test_capturing_offsets_from_remote_file method test_capturing_offsets_from_string (line 48) | def test_capturing_offsets_from_string method test_capturing_offsets_with_imports (line 77) | def test_capturing_offsets_with_imports FILE: test/test_css_parser_regexps.rb class CssParserRegexpTests (line 10) | class CssParserRegexpTests < Minitest::Test method test_strings (line 11) | def test_strings method test_box_model_units (line 26) | def test_box_model_units method test_unicode (line 32) | def test_unicode method test_colour (line 38) | def test_colour method test_gradients (line 60) | def test_gradients method test_uris (line 74) | def test_uris method test_important (line 87) | def test_important method load_test_file (line 94) | def load_test_file(filename) FILE: test/test_merging.rb class MergingTests (line 5) | class MergingTests < Minitest::Test method setup (line 8) | def setup method test_simple_merge (line 12) | def test_simple_merge method test_merging_array (line 20) | def test_merging_array method test_merging_with_compound_selectors (line 28) | def test_merging_with_compound_selectors method test_merging_multiple (line 43) | def test_merging_multiple method test_multiple_selectors_should_have_proper_specificity (line 51) | def test_multiple_selectors_should_have_proper_specificity method test_setting_specificity (line 58) | def test_setting_specificity method test_properties_should_be_case_insensitive (line 65) | def test_properties_should_be_case_insensitive method test_merging_backgrounds (line 72) | def test_merging_backgrounds method test_merging_dimensions (line 79) | def test_merging_dimensions method test_merging_fonts (line 86) | def test_merging_fonts method test_raising_error_on_bad_type (line 93) | def test_raising_error_on_bad_type method test_returning_early_with_only_one_params (line 99) | def test_returning_early_with_only_one_params method test_merging_important (line 105) | def test_merging_important method test_prioritising_important_over_non_important_in_the_same_block (line 112) | def test_prioritising_important_over_non_important_in_the_same_block method test_prioritising_two_important_declarations_in_the_same_block (line 118) | def test_prioritising_two_important_declarations_in_the_same_block method test_merging_multiple_important (line 124) | def test_merging_multiple_important method test_merging_shorthand_important (line 135) | def test_merging_shorthand_important FILE: test/test_rule_set.rb class RuleSetTests (line 6) | class RuleSetTests < Minitest::Test method setup (line 9) | def setup method test_setting_property_values (line 13) | def test_setting_property_values method test_getting_property_values (line 23) | def test_getting_property_values method test_getting_property_value_ignoring_case (line 28) | def test_getting_property_value_ignoring_case method test_each_selector (line 33) | def test_each_selector method test_each_declaration (line 48) | def test_each_declaration method test_each_declaration_respects_order (line 64) | def test_each_declaration_respects_order method test_each_declaration_containing_semicolons (line 73) | def test_each_declaration_containing_semicolons method test_each_declaration_with_newlines (line 80) | def test_each_declaration_with_newlines method test_selector_sanitization (line 93) | def test_selector_sanitization method test_multiple_selectors_to_s (line 99) | def test_multiple_selectors_to_s method test_declarations_to_s (line 105) | def test_declarations_to_s method test_important_declarations_to_s (line 111) | def test_important_declarations_to_s method test_overriding_specificity (line 117) | def test_overriding_specificity method test_important_without_value (line 124) | def test_important_without_value method test_not_raised_issue68 (line 130) | def test_not_raised_issue68 FILE: test/test_rule_set_creating_shorthand.rb class RuleSetCreatingShorthandTests (line 6) | class RuleSetCreatingShorthandTests < Minitest::Test method setup (line 9) | def setup method test_border_width (line 13) | def test_border_width method test_border_width_with_border_color_with_spaces (line 20) | def test_border_width_with_border_color_with_spaces method test_combining_borders_into_shorthand (line 33) | def test_combining_borders_into_shorthand method test_combining_dimensions_into_shorthand (line 88) | def test_combining_dimensions_into_shorthand method test_combining_dimensions_into_shorthand_with_auto (line 113) | def test_combining_dimensions_into_shorthand_with_auto method test_combining_font_into_shorthand (line 122) | def test_combining_font_into_shorthand method test_combining_background_into_shorthand (line 143) | def test_combining_background_into_shorthand method test_combining_background_with_size_into_shorthand (line 158) | def test_combining_background_with_size_into_shorthand method test_combining_background_with_size_and_no_position_into_shorthand (line 173) | def test_combining_background_with_size_and_no_position_into_shorthand method test_combining_list_style_into_shorthand (line 189) | def test_combining_list_style_into_shorthand method test_property_values_in_url (line 203) | def test_property_values_in_url method test_a_single_property_is_not_shorted (line 215) | def test_a_single_property_is_not_shorted method assert_properties_are_deleted (line 225) | def assert_properties_are_deleted(ruleset, properties) method create_shorthand (line 231) | def create_shorthand(properties) FILE: test/test_rule_set_expanding_shorthand.rb class RuleSetExpandingShorthandTests (line 5) | class RuleSetExpandingShorthandTests < Minitest::Test method setup (line 8) | def setup method test_expanding_border_shorthand (line 13) | def test_expanding_border_shorthand method test_getting_dimensions_from_shorthand (line 65) | def test_getting_dimensions_from_shorthand method test_getting_font_size_from_shorthand (line 81) | def test_getting_font_size_from_shorthand method test_getting_font_families_from_shorthand (line 95) | def test_getting_font_families_from_shorthand method test_getting_font_weight_from_shorthand (line 101) | def test_getting_font_weight_from_shorthand method test_getting_font_variant_from_shorthand (line 116) | def test_getting_font_variant_from_shorthand method test_getting_font_variant_from_shorthand_ensure_normal_is_the_default_state (line 122) | def test_getting_font_variant_from_shorthand_ensure_normal_is_the_defa... method test_getting_font_style_from_shorthand (line 132) | def test_getting_font_style_from_shorthand method test_getting_line_height_from_shorthand (line 147) | def test_getting_line_height_from_shorthand method test_getting_line_height_from_shorthand_with_spaces (line 162) | def test_getting_line_height_from_shorthand_with_spaces method test_getting_background_properties_from_shorthand (line 171) | def test_getting_background_properties_from_shorthand method test_getting_background_position_from_shorthand (line 182) | def test_getting_background_position_from_shorthand method test_getting_background_size_from_shorthand (line 196) | def test_getting_background_size_from_shorthand method test_getting_background_colour_from_shorthand (line 210) | def test_getting_background_colour_from_shorthand method test_getting_background_attachment_from_shorthand (line 223) | def test_getting_background_attachment_from_shorthand method test_getting_background_repeat_from_shorthand (line 231) | def test_getting_background_repeat_from_shorthand method test_getting_background_image_from_shorthand (line 239) | def test_getting_background_image_from_shorthand method test_getting_background_gradient_from_shorthand (line 249) | def test_getting_background_gradient_from_shorthand method test_getting_list_style_properties_from_shorthand (line 260) | def test_getting_list_style_properties_from_shorthand method test_getting_list_style_position_from_shorthand (line 271) | def test_getting_list_style_position_from_shorthand method test_getting_list_style_type_from_shorthand (line 279) | def test_getting_list_style_type_from_shorthand method test_expanding_shorthand_with_replaced_properties_after (line 287) | def test_expanding_shorthand_with_replaced_properties_after method test_expanding_important_shorthand_with_replaced_properties (line 301) | def test_expanding_important_shorthand_with_replaced_properties method test_functions_with_many_spaces (line 315) | def test_functions_with_many_spaces method test_functions_with_no_spaces (line 327) | def test_functions_with_no_spaces method test_functions_with_one_space (line 339) | def test_functions_with_one_space method test_functions_with_commas (line 351) | def test_functions_with_commas method expand_declarations (line 365) | def expand_declarations(declarations)