Class: Ruckus::Le16
Overview
XXX DRY, refactoring in process
Moved this from classmethods to classes so we can encode more into the type, useful for selectors
Constant Summary
Constants inherited from Number
Constants inherited from Parsel
Instance Attribute Summary
Attributes inherited from Number
#ascii, #endian, #pad, #radix, #value, #width
Attributes inherited from Parsel
#name, #parent, #rendered_offset, #rendering, #tag, #value
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Le16
constructor
A new instance of Le16.
Methods inherited from Number
#ascii_capture, #ascii_to_s, #capture, #odd_width?, #odd_width_capture, #odd_width_first?, #odd_width_to_s, #resolve, #size, #span_bits, #span_offset, #to_s
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, #size, #visit, #where_am_i?
Constructor Details
#initialize(opts = {}) ⇒ Le16
Returns a new instance of Le16.
280 281 |
# File 'lib/ruckus/number.rb', line 280 def initialize(opts={}); super(opts.merge(:width => 16, :endian => :little)) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Ruckus::Parsel