Created
September 17, 2012 21:24
-
-
Save potatosalad/3739897 to your computer and use it in GitHub Desktop.
Destructive class methods for Ruby (hopefully all of them)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ruby -rmongoid destructive_class_methods.rb | |
| class DestructiveClassMethods | |
| include Mongoid::Document | |
| end | |
| File.open('destructive_class_methods.txt', 'wb') do |f| | |
| DestructiveClassMethods.methods.sort.each do |method| | |
| f.puts method | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ! | |
| != | |
| !~ | |
| < | |
| <= | |
| <=> | |
| == | |
| === | |
| =~ | |
| > | |
| >= | |
| __add__ | |
| __add_from_array__ | |
| __array__ | |
| __callback_runner_name | |
| __deep_copy__ | |
| __define_runner | |
| __evolve_object_id__ | |
| __expand_complex__ | |
| __find_args__ | |
| __id__ | |
| __intersect__ | |
| __intersect_from_array__ | |
| __intersect_from_object__ | |
| __mongoize_fk__ | |
| __mongoize_object_id__ | |
| __mongoize_time__ | |
| __reset_runner | |
| __run_callback | |
| __safe_options__ | |
| __send__ | |
| __sortable__ | |
| __to_inc__ | |
| __union__ | |
| __union_from_object__ | |
| __update_callbacks | |
| _accessible_attributes | |
| _accessible_attributes= | |
| _accessible_attributes? | |
| _active_authorizer | |
| _active_authorizer= | |
| _active_authorizer? | |
| _build_callbacks | |
| _build_callbacks= | |
| _build_callbacks? | |
| _create_callbacks | |
| _create_callbacks= | |
| _create_callbacks? | |
| _creating | |
| _define_after_model_callback | |
| _define_around_model_callback | |
| _define_before_model_callback | |
| _destroy_callbacks | |
| _destroy_callbacks= | |
| _destroy_callbacks? | |
| _initialize_callbacks | |
| _initialize_callbacks= | |
| _initialize_callbacks? | |
| _loading_revision? | |
| _mass_assignment_sanitizer | |
| _mass_assignment_sanitizer= | |
| _mass_assignment_sanitizer? | |
| _parse_validates_options | |
| _protected_attributes | |
| _protected_attributes= | |
| _protected_attributes? | |
| _save_callbacks | |
| _save_callbacks= | |
| _save_callbacks? | |
| _to_partial_path | |
| _types | |
| _update_callbacks | |
| _update_callbacks= | |
| _update_callbacks? | |
| _upsert_callbacks | |
| _upsert_callbacks= | |
| _upsert_callbacks? | |
| _validate_callbacks | |
| _validate_callbacks= | |
| _validate_callbacks? | |
| _validates_default_keys | |
| _validation_callbacks | |
| _validation_callbacks= | |
| _validation_callbacks? | |
| _validators | |
| _validators= | |
| _validators? | |
| ` | |
| accepts_nested_attributes_for | |
| accessible_attributes | |
| active_authorizer | |
| active_authorizers | |
| acts_like? | |
| add_defaults | |
| add_field | |
| add_indexes | |
| add_observer | |
| after_build | |
| after_create | |
| after_destroy | |
| after_initialize | |
| after_save | |
| after_update | |
| after_upsert | |
| after_validation | |
| aggregates | |
| alias_attribute | |
| alias_method_chain | |
| aliased_fields | |
| aliased_fields= | |
| aliased_fields? | |
| all | |
| all_in | |
| all_of | |
| allocate | |
| ancestors | |
| and | |
| anonymous? | |
| any_in | |
| any_of | |
| around_create | |
| around_destroy | |
| around_save | |
| around_update | |
| around_upsert | |
| as_json | |
| asc | |
| ascending | |
| associations | |
| attr_accessible | |
| attr_internal | |
| attr_internal_accessor | |
| attr_internal_reader | |
| attr_internal_writer | |
| attr_protected | |
| attr_readonly | |
| attribute_method? | |
| attribute_names | |
| attributes_protected_by_default | |
| autoload | |
| autoload? | |
| autosavable? | |
| autosave | |
| autosaved_relations | |
| autosaved_relations= | |
| autosaved_relations? | |
| avg | |
| batch_size | |
| before_create | |
| before_destroy | |
| before_save | |
| before_update | |
| before_upsert | |
| before_validation | |
| belongs_to | |
| between | |
| blank? | |
| breakpoint | |
| builder | |
| capture | |
| cascade | |
| cascades | |
| cascades= | |
| cascades? | |
| cattr_accessor | |
| cattr_reader | |
| cattr_writer | |
| class | |
| class_attribute | |
| class_eval | |
| class_exec | |
| class_variable_defined? | |
| class_variable_get | |
| class_variable_set | |
| class_variables | |
| clear_persistence_options | |
| clone | |
| collection | |
| collection_name | |
| const_defined? | |
| const_get | |
| const_missing | |
| const_set | |
| constants | |
| count | |
| count_observers | |
| create | |
| create! | |
| create_accessors | |
| create_field_check | |
| create_field_getter | |
| create_field_setter | |
| create_indexes | |
| create_translations_getter | |
| create_translations_setter | |
| creator | |
| criteria | |
| cyclic | |
| cyclic= | |
| cyclic? | |
| database_name | |
| database_override | |
| debugger | |
| default_collection_name | |
| default_collection_name= | |
| default_scopable? | |
| default_scope | |
| default_scoping | |
| default_scoping= | |
| default_scoping? | |
| define_callbacks | |
| define_model_callbacks | |
| define_singleton_method | |
| delegate | |
| delete_all | |
| demongoize | |
| deprecate | |
| desc | |
| descendants | |
| descending | |
| destroy_all | |
| direct_descendants | |
| display | |
| do_or_do_not | |
| dup | |
| duplicable? | |
| each | |
| elem_match | |
| embedded | |
| embedded= | |
| embedded? | |
| embedded_in | |
| embedded_relations | |
| embedded_relations= | |
| embedded_relations? | |
| embeds_many | |
| embeds_one | |
| empty? | |
| enable_warnings | |
| enum_for | |
| eql? | |
| equal? | |
| evolve | |
| excludes | |
| existence_check | |
| exists | |
| exists? | |
| extend | |
| extras | |
| fail_callback! | |
| fail_validate! | |
| field | |
| field_for | |
| fields | |
| fields= | |
| fields? | |
| find | |
| find_and_modify | |
| find_by | |
| find_or | |
| find_or_create_by | |
| find_or_initialize_by | |
| first | |
| freeze | |
| frozen? | |
| generated_methods | |
| getter | |
| gt | |
| gte | |
| has_and_belongs_to_many | |
| has_many | |
| has_one | |
| hash | |
| hereditary? | |
| hint | |
| html_safe? | |
| human_attribute_name | |
| i18n_scope | |
| ids_getter | |
| ids_setter | |
| in | |
| in? | |
| include? | |
| include_root_in_json | |
| include_root_in_json= | |
| include_root_in_json? | |
| included_modules | |
| includes | |
| index | |
| index_options | |
| index_options= | |
| inherited | |
| initialize_clone | |
| initialize_dup | |
| inspect | |
| instance_eval | |
| instance_exec | |
| instance_method | |
| instance_method_names | |
| instance_methods | |
| instance_of? | |
| instance_values | |
| instance_variable_defined? | |
| instance_variable_get | |
| instance_variable_names | |
| instance_variable_set | |
| instance_variables | |
| instantiate | |
| instantiate_observer | |
| instantiate_observers | |
| is_a? | |
| ivar | |
| json_creatable? | |
| kind_of? | |
| last | |
| limit | |
| local_constant_names | |
| local_constants | |
| logger | |
| lookup_ancestors | |
| lt | |
| lte | |
| map_reduce | |
| mass_assignment_sanitizer= | |
| mattr_accessor | |
| mattr_reader | |
| mattr_writer | |
| max | |
| max_distance | |
| max_scan | |
| method | |
| method_defined? | |
| method_names | |
| methods | |
| min | |
| mod | |
| model_name | |
| module_eval | |
| module_exec | |
| mongo_session | |
| mongoize | |
| multi_arged? | |
| name | |
| ne | |
| near | |
| near_sphere | |
| nested_attributes | |
| nested_attributes= | |
| nested_attributes? | |
| new | |
| nil? | |
| nin | |
| no_timeout | |
| nor | |
| not | |
| not_in | |
| notify_observers | |
| numeric? | |
| object_id | |
| observer_instances | |
| observers | |
| observers= | |
| offset | |
| only | |
| or | |
| order_by | |
| paranoid | |
| paranoid= | |
| paranoid? | |
| parent | |
| parent_name | |
| parents | |
| persistence_options | |
| polymorph | |
| polymorphic | |
| polymorphic= | |
| polymorphic? | |
| post_processed_defaults | |
| post_processed_defaults= | |
| post_processed_defaults? | |
| pre_processed_defaults | |
| pre_processed_defaults= | |
| pre_processed_defaults? | |
| presence | |
| present? | |
| private_class_method | |
| private_constant | |
| private_instance_methods | |
| private_method_defined? | |
| private_methods | |
| process_options | |
| protected_attributes | |
| protected_instance_methods | |
| protected_method_defined? | |
| protected_methods | |
| psych_to_yaml | |
| psych_yaml_as | |
| public_class_method | |
| public_constant | |
| public_instance_method | |
| public_instance_methods | |
| public_method | |
| public_method_defined? | |
| public_methods | |
| public_send | |
| qualified_const_defined? | |
| qualified_const_get | |
| qualified_const_set | |
| queryable | |
| quietly | |
| re_define_method | |
| reachable? | |
| readonly_attributes | |
| readonly_attributes= | |
| readonly_attributes? | |
| recursively_embeds_many | |
| recursively_embeds_one | |
| redefine_method | |
| reflect_on_all_associations | |
| reflect_on_association | |
| regexp? | |
| relations | |
| relations= | |
| relations? | |
| remove_class_variable | |
| remove_defaults | |
| remove_indexes | |
| remove_ivar | |
| remove_possible_method | |
| replace_field | |
| reset_callbacks | |
| resizable? | |
| respond_to? | |
| respond_to_missing? | |
| scope | |
| scope_stack | |
| scoped | |
| scopes | |
| scopes= | |
| scopes? | |
| send | |
| session_override | |
| set_callback | |
| setter | |
| shard_key | |
| shard_key_fields | |
| shard_key_fields= | |
| silence | |
| silence_stderr | |
| silence_stream | |
| silence_warnings | |
| singleton_class | |
| singleton_methods | |
| skip | |
| skip_callback | |
| slice | |
| snapshot | |
| storage_options | |
| storage_options= | |
| store_in | |
| subclasses | |
| substitutable | |
| sum | |
| superclass | |
| superclass_delegating_accessor | |
| suppress | |
| synced | |
| synchronize | |
| synchronize_with_deprecation | |
| synchronize_without_deprecation | |
| taint | |
| tainted? | |
| tap | |
| timeless | |
| to_enum | |
| to_json | |
| to_param | |
| to_query | |
| to_s | |
| to_yaml | |
| to_yaml_properties | |
| touchable | |
| touchables | |
| touchables= | |
| touchables? | |
| trust | |
| try | |
| unscoped | |
| untaint | |
| untrust | |
| untrusted? | |
| update | |
| update_all | |
| using_object_ids? | |
| validate | |
| validates | |
| validates! | |
| validates_acceptance_of | |
| validates_associated | |
| validates_confirmation_of | |
| validates_each | |
| validates_exclusion_of | |
| validates_format_of | |
| validates_inclusion_of | |
| validates_length_of | |
| validates_numericality_of | |
| validates_presence_of | |
| validates_size_of | |
| validates_uniqueness_of | |
| validates_with | |
| validators | |
| validators_on | |
| where | |
| with | |
| with_default_scope | |
| with_options | |
| with_scope | |
| with_size | |
| with_type | |
| with_warnings | |
| within_box | |
| within_circle | |
| within_polygon | |
| within_spherical_circle | |
| without | |
| without_default_scope | |
| yaml_as | |
| yaml_tag | |
| you_must |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment