Class: Glark::SizeLimitOption
- Inherits:
-
Option
- Object
- Option
- Glark::SizeLimitOption
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
#argtype ⇒ Object
10
11
12
|
# File 'lib/glark/input/filter/options.rb', line 10
def argtype
:integer
end
|
#field ⇒ Object
18
19
20
|
# File 'lib/glark/input/filter/options.rb', line 18
def field
:size
end
|
#posneg ⇒ Object
14
15
16
|
# File 'lib/glark/input/filter/options.rb', line 14
def posneg
:negative
end
|
#rcfield ⇒ Object
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
|