Sha256: d406a0fbbdee4b47af93b2e963940c41161fede0a0ff0e10ce08f8ca6c9ed2be
Contents?: true
Size: 413 Bytes
Versions: 3
Compression:
Stored size: 413 Bytes
Contents
# frozen_string_literal: true class Enumark class Category START = /^\s.*<DT><H3/ ENDIND = /^\s.*<\/DL><p>/ PATTERN = /ADD_DATE="(.*?)".*LAST_MODIFIED="(.*?)".*>(.*)<\/H3/ attr_reader :name alias_method :inspect, :name alias_method :to_s, :name def initialize(line) m = line.match(PATTERN) @add_date = m[1] @last_mod = m[2] @name = m[3] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enumark-1.1.1 | lib/enumark/category.rb |
enumark-1.0.0 | lib/enumark/category.rb |
enumark-0.1.4 | lib/enumark/category.rb |