class MovieMasher::Filter

base for all filters

Attributes

__outsize[RW]
disabled[W]
id[R]

Public Class Methods

new(id = nil) click to toggle source
# File lib/graph.rb, line 79
def initialize(id = nil)
  @id = id || ''
  @disabled = false
end

Public Instance Methods

filter_command(_scope) click to toggle source
# File lib/graph.rb, line 83
def filter_command(_scope)
  (@disabled ? '' : @id)
end
filter_name() click to toggle source
# File lib/graph.rb, line 86
def filter_name
  @id
end