Class: Glark::SizeLimitOption

Inherits:
Option
  • Object
show all
Defined in:
lib/glark/input/filter/options.rb

Instance Method Summary collapse

Methods inherited from Option

#add_to_option_data, #initialize, #match_rc, #tags

Constructor Details

This class inherits a constructor from Glark::Option

Instance Method Details

#argtypeObject



10
11
12
# File 'lib/glark/input/filter/options.rb', line 10

def argtype
  :integer
end

#fieldObject



18
19
20
# File 'lib/glark/input/filter/options.rb', line 18

def field
  :size
end

#posnegObject



14
15
16
# File 'lib/glark/input/filter/options.rb', line 14

def posneg
  :negative
end

#rcfieldObject



26
27
28
# File 'lib/glark/input/filter/options.rb', line 26

def rcfield
  'size-limit'
end

#set(val) ⇒ Object



22
23
24
# File 'lib/glark/input/filter/options.rb', line 22

def set val
  @optee.add field, posneg, SizeLimitFilter.new(val.to_i)
end