Class: Rules

Inherits:
Object
  • Object
show all
Defined in:
lib/jirametrics/rules.rb

Instance Method Summary collapse

Instance Method Details

#hashObject



13
14
15
# File 'lib/jirametrics/rules.rb', line 13

def hash
  2 # TODO: While this works, it's not performant
end

#ignore(value = true) ⇒ Object

Boolean positional is the config-block DSL's public API (ignore false).



5
6
7
# File 'lib/jirametrics/rules.rb', line 5

def ignore value = true # rubocop:disable Style/OptionalBooleanParameter
  @ignore = value
end

#ignored?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/jirametrics/rules.rb', line 9

def ignored?
  @ignore == true
end