module BinData::DSLMixin
BinData classes that are part of the DSL must be extended by this.
Public Instance Methods
dsl_parser(parser_type = nil)
click to toggle source
# File lib/bindata/dsl.rb, line 38 def dsl_parser(parser_type = nil) unless defined? @dsl_parser parser_type = superclass.dsl_parser.parser_type if parser_type.nil? @dsl_parser = DSLParser.new(self, parser_type) end @dsl_parser end
to_ary()
click to toggle source
Assert object is not an array or string.
# File lib/bindata/dsl.rb, line 51 def to_ary; nil; end
to_str()
click to toggle source
# File lib/bindata/dsl.rb, line 52 def to_str; nil; end