Sha256: f210e46c78cb438aff6d9884351d9205343b23a506fb64dc39fc5f0bd16cd85a
Contents?: true
Size: 514 Bytes
Versions: 1
Compression:
Stored size: 514 Bytes
Contents
# frozen_string_literal: true module Minutely ## # An abstract class for defining custom parsers. # # @!attribute [r] value # @return [Object] class Parser attr_reader :value ## # Initialize the parser. # # @param value [Object] def initialize(value) @value = value end ## # Parse the specified value. # # @param value [Object] # @return [Object] # @raise [ArgumentError] def self.parse(value) new(value).parse end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minutely-3.0.0 | lib/minutely/parser.rb |