Class: Ruckus::Null
Constant Summary
Constants inherited from Parsel
Instance Attribute Summary
Attributes inherited from Parsel
#name, #parent, #rendered_offset, #rendering, #tag, #value
Instance Method Summary collapse
- #capture(str) ⇒ Object
-
#initialize(opts = {}) ⇒ Null
constructor
A new instance of Null.
- #size ⇒ Object
- #to_s(off = nil) ⇒ Object
Methods inherited from Parsel
bytes_for_bits, coerce, #each_matching_selector, endian?, factory?, #find_containing, #find_tag, #find_tag_struct, #fixup, #in, #incomplete!, #index_for_selectors, #inspect, #matches_selector?, #method_missing, #native?, native?, #next, #out, #parent_structure, #permute, #prev, #resolve, #respond_to?, #root, #visit, #where_am_i?
Constructor Details
#initialize(opts = {}) ⇒ Null
Returns a new instance of Null.
3 4 5 |
# File 'lib/ruckus/null.rb', line 3 def initialize(opts={}) super(opts) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Ruckus::Parsel
Instance Method Details
#capture(str) ⇒ Object
16 17 18 |
# File 'lib/ruckus/null.rb', line 16 def capture(str) return str end |
#size ⇒ Object
20 21 22 |
# File 'lib/ruckus/null.rb', line 20 def size 0 end |
#to_s(off = nil) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/ruckus/null.rb', line 7 def to_s(off=nil) @rendered_offset = off || 0 if off return "", off else return "" end end |