Sha256: b4f307b669a46781c670aab76b676da790e9f2e3d221569705aea55f092ae011

Contents?: true

Size: 254 Bytes

Versions: 3

Compression:

Stored size: 254 Bytes

Contents

# frozen_string_literal: true

module Basic101

  class StringIdentifier < Identifier

    def input(input_parser)
      value = input_parser.read_string
      BasicString.new(value)
    end

    def default
      BasicString.new('')
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
basic101-1.0.2 lib/basic101/string_identifier.rb
basic101-1.0.1 lib/basic101/string_identifier.rb
basic101-1.0.0 lib/basic101/string_identifier.rb