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)
  @dsl_parser ||= begin
    parser_type ||= superclass.dsl_parser.parser_type
    DSLParser.new(self, parser_type)
  end
end
to_ary() click to toggle source

Assert object is not an array or string.

# File lib/bindata/dsl.rb, line 50
def to_ary; nil; end
to_str() click to toggle source
# File lib/bindata/dsl.rb, line 51
def to_str; nil; end