class Wc::Counter::FileItemCounter

Overview

interface and default impl

Included Modules

Defined in:

counter.cr

Constructors

Instance Method Summary

Instance methods inherited from module Wc::Counter::LineCounter

count_line count_line, get_content : String get_content

Instance methods inherited from module Wc::Counter::WordCounter

count_words count_words, get_content : String get_content

Instance methods inherited from module Wc::Counter::CharacterCounter

count_chars count_chars, get_content : String get_content

Constructor Detail

def self.new(fc : String) #

construct an object


[View source]

Instance Method Detail

def from_filename(fname : String) #

Create from filename


[View source]
def get_content : String #

[View source]